Skip to content

Commit

Permalink
escape \ for match regex example in playground
Browse files Browse the repository at this point in the history
  • Loading branch information
nbittich committed Aug 15, 2024
1 parent 196dcf4 commit 00bfaf4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion adana-playground/examples.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ println(is_match(text, pattern))
{
key: "match",
label: "Match (regex)",
script: `pattern = """(\w+): \$(\d+)"""
script: `pattern = """(\\w+): \\$(\\d+)"""
text = "Item1: $100, Item2: $200, Item3: $300"
println(match(text, pattern))`
},
Expand Down

0 comments on commit 00bfaf4

Please sign in to comment.