summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoman Smrž <roman.smrz@seznam.cz>2024-05-18 20:41:01 +0200
committerRoman Smrž <roman.smrz@seznam.cz>2024-05-18 20:41:01 +0200
commit97597b95b5323565c685594f93182ef99aa633e4 (patch)
treec9645666665efa28df0a0049d465d06581711f6f
parent0df5c2559e764682df17ac077a259f8cabb32f3f (diff)
README: fix regex example
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index e0eb73c..3b0397d 100644
--- a/README.md
+++ b/README.md
@@ -160,7 +160,7 @@ regular expressions expand are used directly.
```
let str = "."
let re1 = /./
-let re2 = "$str$re1" # match '.' followed by any character
+let re2 = /$str$re1/ # match '.' followed by any character
```
#### boolean