remove extra spaces (Blade Template)
This commit is contained in:
parent
895d0178cb
commit
ef4098af01
|
@ -55,7 +55,7 @@ module.exports = class JSBeautify extends Beautifier
|
|||
when "Blade"
|
||||
beautifyHTML = require("js-beautify").html
|
||||
# pre script (Workaround)
|
||||
text = text.replace(/\@(?!yield)([^\n\s]*)/ig, "<blade $1 />")
|
||||
text = text.replace(/\@(?!yield)([^\n\s]*)/ig, "<blade $1/>")
|
||||
text = beautifyHTML(text, options)
|
||||
# post script (Workaround)
|
||||
text = text.replace(/<blade ([^\n]*)\/>/ig, "@$1")
|
||||
|
|
Loading…
Reference in New Issue