Browse Source

fix text parser regex for multiline tags (fix #3526)

Evan You 9 years ago
parent
commit
3fa4076d05
1 changed files with 1 additions and 1 deletions
  1. 1 1
      src/compiler/parser/text-parser.js

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

@@ -3,7 +3,7 @@
 import { cached } from 'shared/util'
 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 => {