Fix dev/core#4455 broken SK arithmetic display
authorcolemanw <coleman@civicrm.org>
Thu, 27 Jul 2023 19:36:35 +0000 (15:36 -0400)
committercolemanw <coleman@civicrm.org>
Thu, 27 Jul 2023 19:36:35 +0000 (15:36 -0400)
ext/search_kit/ang/crmSearchAdmin.module.js

index 6e2bfe0b1e20b5919d998eaa6ed43671490194f6..0dc2a7afd993c54fca11b96d1298947f2ccf3b85 100644 (file)
         return {field: field, join: join};
       }
       function parseFnArgs(info, expr) {
-        var matches = /([_A-Z]+)\((.*)\)(:[a-z]+)?$/.exec(expr),
+        var matches = /([_A-Z]*)\((.*)\)(:[a-z]+)?$/.exec(expr),
           fnName = matches[1],
           argString = matches[2];
         info.fn = _.find(CRM.crmSearchAdmin.functions, {name: fnName || 'e'});