diff --git a/examples/simple-jsbeautifyrc/blade/expected/test.blade.php b/examples/simple-jsbeautifyrc/blade/expected/test.blade.php index 69d537e..111ea87 100644 --- a/examples/simple-jsbeautifyrc/blade/expected/test.blade.php +++ b/examples/simple-jsbeautifyrc/blade/expected/test.blade.php @@ -5,7 +5,7 @@ - @section('sidebar') This is the {{ $mater }} sidebar. + @section('sidebar') This is the {{ $mater }} sidebar. @show
@@ -13,17 +13,17 @@
@component('alert') - @slot('title') Forbidden + @slot('title') Forbidden @endslot Whoops! Something went wrong! @endcomponent - @foreach ($users as $user) - @if ($user->type == 1) + @foreach ($users as $user) + @if ($user->type == 1) @continue @endif
  • {{ $user->name }}
  • - @if ($user->number == 5) + @if ($user->number == 5) @break @endif @endforeach diff --git a/src/beautifiers/js-beautify.coffee b/src/beautifiers/js-beautify.coffee index 1894a64..01e377c 100644 --- a/src/beautifiers/js-beautify.coffee +++ b/src/beautifiers/js-beautify.coffee @@ -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, "") + text = text.replace(/\@(?!yield)([^\n\s]*)/ig, "") text = beautifyHTML(text, options) # post script (Workaround) text = text.replace(//ig, "@$1")