diff --git a/js/select2.js b/js/select2.js
index 10c530e..91a71ce 100644
--- a/js/select2.js
+++ b/js/select2.js
@@ -32,6 +32,11 @@
         if (Object.prototype.hasOwnProperty.call(config, 'dropdownParent')) {
           config.dropdownParent = $(config.dropdownParent);
         }
+
+        // If config has a matcher property, change it to function.
+        if (Object.prototype.hasOwnProperty.call(config, 'matcher')) {
+          config.matcher = window[config.matcher];
+        }
         $(this).select2(config);
 
         // Copied from https://github.com/woocommerce/woocommerce/blob/master/assets/js/admin/wc-enhanced-select.js#L118
