diff options
author | bptato <nincsnevem662@gmail.com> | 2022-12-13 13:08:33 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2022-12-13 13:08:33 +0100 |
commit | 672ab553c4a2b10a703ea40e049eda52db149a93 (patch) | |
tree | 10c581ab40702e113bffe6605c58a640ac5095ee /src/js | |
parent | f3e2cb7bfa4517155a2c6675e6310f17d8ca4d89 (diff) | |
download | chawan-672ab553c4a2b10a703ea40e049eda52db149a93.tar.gz |
Add more cookie options
Diffstat (limited to 'src/js')
-rw-r--r-- | src/js/regex.nim | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/js/regex.nim b/src/js/regex.nim index d65e5a29..a4652373 100644 --- a/src/js/regex.nim +++ b/src/js/regex.nim @@ -215,3 +215,6 @@ proc exec*(regex: Regex, str: string, start = 0, length = str.len): RegexResult e8 += r.size() result.captures.add((s8, e8)) dealloc(capture) + +proc match*(regex: Regex, str: string, start = 0, length = str.len): bool = + return regex.exec(str, start, length).success |