فهرست منبع

fix #4344 #4445 #4511 (#4646)

* fiz regular expression

* fix regular expression
Ariel Pchara 9 سال پیش
والد
کامیت
e259fc306e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/compiler/parser/text-parser.js

+ 1 - 1
src/compiler/parser/text-parser.js

@@ -4,7 +4,7 @@ import { cached } from 'shared/util'
 import { parseFilters } from './filter-parser'
 
 const defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g
-const regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g
+const regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g
 
 const buildRegex = cached(delimiters => {
   const open = delimiters[0].replace(regexEscapeRE, '\\$&')