vue section mark right
This commit is contained in:
parent
cfe0e6ad8e
commit
f9d643cc5f
|
@ -11,7 +11,7 @@ module.exports = class VueBeautifier extends Beautifier
|
|||
|
||||
beautify: (text, language, options) ->
|
||||
return new @Promise((resolve, reject) ->
|
||||
regexp = /(<(template|script|style)[^>]*>)((\s|\S)*?)<\/\2>/gi
|
||||
regexp = /(^<(template|script|style)[^>]*>)((\s|\S)*?)^<\/\2>/gim
|
||||
|
||||
resolve(text.replace(regexp, (match, begin, type, text) ->
|
||||
lang = /lang\s*=\s*['"](\w+)["']/.exec(begin)?[1]
|
||||
|
|
Loading…
Reference in New Issue