Skip to content
This repository was archived by the owner on Dec 1, 2023. It is now read-only.

Commit b0eaf16

Browse files
committed
fix expression RegExp
1 parent fa27d92 commit b0eaf16

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/util.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ export function set(obj, key, val) {
6969
}
7070

7171
const parsedFunc = {};
72-
const expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\S]+|\W)*)([\w][\w+.]*)?/g;
72+
const expressionRe = /((?:\d|true|false|null|undefined|(?:this\.|\$)[\w.]+|\W)*)([\w][\w.]*)?/g;
7373
const quotedStringRe = /([^"']+)((.)(?:[^\3\\]|\\.)*?\3|.)?/g;
7474

7575
export function parse(expr) {

0 commit comments

Comments
 (0)