diff options
author | Araq <rumpf_a@web.de> | 2017-02-25 11:18:48 +0100 |
---|---|---|
committer | Araq <rumpf_a@web.de> | 2017-02-25 11:18:48 +0100 |
commit | 1961e444c32903d5046f078630e90716c17dff62 (patch) | |
tree | 21334eb10390c005f162c6a821bd03d91f1e8b4b /tests/stdlib | |
parent | 667acb06a53a47f47dde29c381df0d4bcbf61b94 (diff) | |
parent | 16aafddee598da750dba378cca5bea0126fdf992 (diff) | |
download | Nim-1961e444c32903d5046f078630e90716c17dff62.tar.gz |
Merge branch 'devel' into feature/async-streams
Diffstat (limited to 'tests/stdlib')
-rw-r--r-- | tests/stdlib/tbug5382.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/stdlib/tbug5382.nim b/tests/stdlib/tbug5382.nim new file mode 100644 index 000000000..c86656d32 --- /dev/null +++ b/tests/stdlib/tbug5382.nim @@ -0,0 +1,11 @@ +discard """ + output: ''' +02 +''' +""" +import re + +let regexp = re"^\/([0-9]{2})\.html$" +var matches: array[1, string] +discard "/02.html".find(regexp, matches) +echo matches[0] |