Commit graph

35 commits

Author SHA1 Message Date
Joseph Turner
7ee6c72b51 Adds test case to is isMainModule block
Adds the test case that originally caused the bug, issue #2418.
2015-04-08 21:58:31 +01:00
Joseph Turner
13e5a9ea6c Fixes matching error #2418
Fixes the split iterator, the main problem was with the incrementation
of 'last'. Last was first incremented to the index of the first
character after the match, but was then incremented again at the
beginning of the while loop. This caused a problem if that character
after the first match, also matched the regular expression.
2015-04-08 17:00:28 +01:00
Simon Hafner
26749de828 re.match returns true on zero-length match #2354 2015-03-16 15:05:02 -05:00
Andreas Rumpf
1ca2db0273 Merge pull request #2260 from oderwat/upd-deprecated-repeats
Updates to remove deprecated repeatStr() and repeatChar() from all files.
2015-03-04 16:42:13 +01:00
Johanna Berewinkel
12e4a62b44 Fixed examples in the documentation of module re (proc replace and proc replacef) 2015-03-04 09:05:30 +01:00
Hans Raaf
58186f6c1d Replaced deprecated repeatChar() with repeat() or spaces(). 2015-03-04 03:30:43 +01:00
Araq
a6082b2a20 slightly better docs for re module 2015-02-01 11:58:40 +01:00
Araq
280fa9624c fixes #1496 2014-12-18 14:54:26 +01:00
Flaviu Tamas
218cb7587a re module returns nil on failed captures
- tests included
- news.txt updated
2014-10-29 17:54:43 -04:00
Araq
3ba34f1762 prettified re.nim; make some tests green 2014-08-31 13:46:27 +02:00
Araq
4523b29d7a Nimrod renamed to Nim 2014-08-28 09:59:26 +02:00
Araq
d05df2173b Nimrod renamed to Nim 2014-08-28 09:50:51 +02:00
Araq
dd806cafa0 distinguish between 'defined' and 'declared' 2014-08-11 20:38:28 +02:00
Araq
bf205fa85d case consistency part 6 2013-12-28 01:17:02 +01:00
Grzegorz Adam Hankiewicz
ec6e267351 Warns to not modify string findAll is iterating over. 2013-07-16 02:00:25 +02:00
Araq
b767f34b6b manyloc test should be green again 2013-06-04 00:58:43 +02:00
Araq
44c4b945eb pegs/re =~ warns about scope rule change; improved docs 2013-05-08 15:49:04 +02:00
Araq
eaeb26f003 re.nim compiles again 2013-05-01 00:28:11 +02:00
Grzegorz Adam Hankiewicz
72a3e21f28 Removes executable bit for text files. 2013-03-16 23:53:07 +01:00
Araq
5e15dec175 first steps to make templates hygienic 2012-08-20 01:13:13 +02:00
Dominik Picheta
b839e42e92 Both the re and pegs module's =~ templates can now be used simultaneously from the same module. 2012-07-21 11:21:41 +01:00
Araq
049de0ef66 'addSon' for types deprecated for 'int literal type' analysis (3) 2012-07-09 20:04:19 +02:00
Araq
4fbba0a65a changed integer promotion rules; breaks bootstrapping and lots of code 2012-07-08 21:03:47 +02:00
Araq
a36a856a2f fixes #113 2012-05-20 12:09:47 +02:00
Araq
4f1b89c30c year 2012 for most copyright headers 2012-01-02 23:07:35 +01:00
Araq
0b4d5e45b9 tester checks exitcode; osproc additions; DLL fixes; taint mode fixes 2011-11-07 23:25:34 +01:00
Araq
5b96eaa953 preparations for 0.8.12 2011-07-10 15:48:13 +02:00
Araq
04f9c2585a readFile raises EIO instead of returning nil; added system.writeFile 2011-06-16 10:47:44 +02:00
Araq
3e9dcc8be5 deprecated system.copy: use system.substr instead 2011-05-14 01:13:44 +02:00
Araq
3005955d20 distinction between re.replace and re.replacef; speed improvements for re module 2011-03-06 21:16:05 +01:00
Araq
e424e13bd9 various bugfixes for generics; added generic sort proc 2011-03-03 02:01:22 +01:00
Araq
437eb2c37e nimgrep: first working version 2011-02-02 00:05:55 +01:00
Araq
ddb49e069e httpserver may work better now 2011-01-13 23:27:24 +01:00
Araq
11d3d94438 bugfixes: htmlparser module 2010-10-30 23:36:36 +02:00
Araq
765366c1f3 version 0.8.10 2010-10-21 00:12:14 +02:00
Renamed from lib/pure/re.nim (Browse further)