Improve detection of template v1-style syntax in CSS/JS contexts

This commit is contained in:
Kijin Sung 2025-03-19 12:44:17 +09:00
parent 04a7734b2e
commit 3e052d2d00
3 changed files with 12 additions and 12 deletions

View file

@ -11,17 +11,16 @@
</p>
<script type="text/javascript">
function() {
const str = @json($var);
const tpl = `template literal with ${var} inside`;
const fun = function() {
const foo = '{{ $var }}';
const bar = '{{ $var|noescape }}';
const json = @json($var);
}
</script>
<style>
body {
background-image: url('{{ $var }}');
}
body{background-image: url('{{ $var }}')}
</style>
<ul class="test">