Skip to content

Commit

Permalink
update regex
Browse files Browse the repository at this point in the history
  • Loading branch information
epoberezkin committed Jul 1, 2020
1 parent 9c009a9 commit 68d72c4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/compile/util.js
Expand Up @@ -137,6 +137,8 @@ function varReplace(str, dataVar, expr) {
}




function schemaHasRules(schema, rules) {
if (typeof schema == 'boolean') return !schema;
for (var key in schema) if (rules[key]) return true;
Expand Down Expand Up @@ -215,7 +217,7 @@ function getData($data, lvl, paths) {

function joinPaths (a, b) {
if (a == '""') return b;
return (a + ' + ' + b).replace(/' \+ '/g, '');
return (a + ' + ' + b).replace(/([^\\])' \+ '/g, '$1');
}


Expand Down

0 comments on commit 68d72c4

Please sign in to comment.