Skip to content

Commit d0e7801

Browse files
authored
Update Config.js
1 parent fddffdb commit d0e7801

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/tools/Config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ Config._valid = function(key, value, sch){
201201
if(scht.length > 1 && type != scht[0] && type == '[object String]'){
202202
if(scht[0] == '[object Array]') {
203203
// unfortunately, js does not support lookahead RegExp (/(?<!\\)\s+/) now (until next ver).
204-
value = value.split(/([\w\-]+\="[^"]*")|([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s/)
204+
value = value.split(/((?<![\w\-])([\w\-]+\="[^"]*")|(?<![\w\-])([\w\-]+\='[^']*')|"([^"]*)"|'([^']*)'|\s )/)
205205
.filter(function(v){
206206
return v && v.trim();
207207
});

0 commit comments

Comments
 (0)