Skip to content

Commit 68d72c4

Browse files
committed
update regex
1 parent 9c009a9 commit 68d72c4

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/compile/util.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ function varReplace(str, dataVar, expr) {
137137
}
138138

139139

140+
141+
140142
function schemaHasRules(schema, rules) {
141143
if (typeof schema == 'boolean') return !schema;
142144
for (var key in schema) if (rules[key]) return true;
@@ -215,7 +217,7 @@ function getData($data, lvl, paths) {
215217

216218
function joinPaths (a, b) {
217219
if (a == '""') return b;
218-
return (a + ' + ' + b).replace(/' \+ '/g, '');
220+
return (a + ' + ' + b).replace(/([^\\])' \+ '/g, '$1');
219221
}
220222

221223

0 commit comments

Comments
 (0)