Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
esquerbatua committed Sep 21, 2024
1 parent 5e624a5 commit 81487c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/parser/tmpl.v
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ fn insert_template_code(fn_name string, tmpl_str_start string, line string) stri
// escaped by cgen, unless it's a `vweb.RawHtml` string
trailing_bs := tmpl_str_end + 'sb_${fn_name}.write_u8(92)\n' + tmpl_str_start
round1 := ['\\', '\\\\', r"'", "\\'", r'@', r'$']
round2 := [r'$$', r'\@', r'.$', r'.@']
round2 := [r'$$', r'\@']
mut rline := line.replace_each(round1).replace_each(round2)
comptime_call_str := rline.find_between('\${', '}')
if comptime_call_str.contains("\\'") {
Expand Down

0 comments on commit 81487c5

Please sign in to comment.