Explorar o código

fix #4344 #4445 #4511 (#4646)

* fiz regular expression

* fix regular expression
Ariel Pchara %!s(int64=9) %!d(string=hai) anos
pai
achega
e259fc306e
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  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'
 import { parseFilters } from './filter-parser'
 
 
 const defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g
 const defaultTagRE = /\{\{((?:.|\n)+?)\}\}/g
-const regexEscapeRE = /[-.*+?^${}()|[\]/\\]/g
+const regexEscapeRE = /[-.*+?^${}()|[\]\/\\]/g
 
 
 const buildRegex = cached(delimiters => {
 const buildRegex = cached(delimiters => {
   const open = delimiters[0].replace(regexEscapeRE, '\\$&')
   const open = delimiters[0].replace(regexEscapeRE, '\\$&')