Skip to content

Commit

Permalink
fix: allow _ in watch paths (element compat)
Browse files Browse the repository at this point in the history
  • Loading branch information
yyx990803 committed Jan 10, 2019
1 parent 5fb23d4 commit 8b382b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/util/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ export function def (obj: Object, key: string, val: any, enumerable?: boolean) {
/**
* Parse simple path.
*/
const bailRE = new RegExp(`[^${unicodeLetters}.$]`)
const bailRE = new RegExp(`[^${unicodeLetters}.$_]`)
export function parsePath (path: string): any {
if (bailRE.test(path)) {
return
Expand Down

0 comments on commit 8b382b3

Please sign in to comment.