Skip to content

Commit 8b382b3

Browse files
committed
fix: allow _ in watch paths (element compat)
1 parent 5fb23d4 commit 8b382b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/core/util/lang.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ export function def (obj: Object, key: string, val: any, enumerable?: boolean) {
3030
/**
3131
* Parse simple path.
3232
*/
33-
const bailRE = new RegExp(`[^${unicodeLetters}.$]`)
33+
const bailRE = new RegExp(`[^${unicodeLetters}.$_]`)
3434
export function parsePath (path: string): any {
3535
if (bailRE.test(path)) {
3636
return

0 commit comments

Comments
 (0)