Browse Source

fix: allow _ in watch paths (element compat)

dev
Evan You 6 years ago
parent
commit
8b382b3efb
  1. 2
      src/core/util/lang.js

2
src/core/util/lang.js

@ -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

Loading…
Cancel
Save