From a3b25c0724fdf79d63467b7092166c04272d92c6 Mon Sep 17 00:00:00 2001 From: Peter Quentin Date: Tue, 9 Oct 2018 18:05:09 +0200 Subject: [PATCH] Fix parsing rules, allow filename to contain brackets This regular expression fix makes parsing the interchange rules more explicit by looking for the complete pattern. --- 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 c06c10dac..8f91b6bed 100644 --- a/js/foundation.interchange.js +++ b/js/foundation.interchange.js @@ -132,7 +132,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