From a3421762690fc3905623c1478508dfa5ea235e01 Mon Sep 17 00:00:00 2001 From: Peter Quentin Date: Thu, 11 Oct 2018 22:37:15 +0200 Subject: [PATCH] Use pull request #11529 from peterquentin/peterquentin-patch-1 for v6.5.0 a3b25c072 Fix parsing rules, allow filename to contain brackets Signed-off-by: Nicolas Coden --- js/foundation.interchange.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/foundation.interchange.js b/js/foundation.interchange.js index a12d3f9ff..2f78aaed1 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -115,7 +115,7 @@ class Interchange extends Plugin { rules = this.$element.data('interchange'); } - rules = typeof rules === 'string' ? rules.match(/\[.*?\]/g) : rules; + rules = typeof rules === 'string' ? rules.match(/\[.*?, .*?\]/g) : rules; for (var i in rules) { if(rules.hasOwnProperty(i)) { -- 2.47.2