This commit is contained in:
Adam Nielsen 2019-11-21 15:25:53 +01:00
parent 6d39db10a3
commit f43f755443
1 changed files with 1 additions and 1 deletions

View File

@ -55,7 +55,7 @@ module.exports = class JSBeautify extends Beautifier
when "Blade"
beautifyHTML = require("js-beautify").html
# pre script (Workaround)
text = text.replace(/\@(?!(?:yield|lang))([^\n\s\<]*)/ig, "<blade $1 />")
text = text.replace(/\@(?!(?:yield|lang))([^\n\s]*)/ig, "<blade $1 />")
text = beautifyHTML(text, options)
# post script (Workaround)
text = text.replace(/<blade ([^\n\s]*)\s*\/\s*>/ig, "@$1")