Jelajahi Sumber

fix: allow _ in watch paths (element compat)

Evan You 7 tahun lalu
induk
melakukan
8b382b3efb
1 mengubah file dengan 1 tambahan dan 1 penghapusan
  1. 1 1
      src/core/util/lang.js

+ 1 - 1
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