Skip to content

Commit

Permalink
Merge pull request #11529 from peterquentin/peterquentin-patch-1
Browse files Browse the repository at this point in the history
Fix interchange parsing rules, allow filename to contain brackets
  • Loading branch information
ncoden committed Oct 9, 2018
2 parents 85ced66 + a3b25c0 commit 1fd8149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/foundation.interchange.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit 1fd8149

Please sign in to comment.