Modify pegs.nim such that no match will return nil

An empty match will return ""
A zero-length match will return nil

Add test cases

Add news information
This commit is contained in:
Flaviu Tamas 2014-10-21 16:49:29 -04:00
commit bc3464ede7
2 changed files with 19 additions and 1 deletions

View file

@ -20,6 +20,8 @@ News
- String case (or any non-ordinal case) statements
without 'else' are deprecated.
- Recursive tuple types are not allowed anymore. Use ``object`` instead.
- The PEGS module returns ``nil`` instead of ``""`` when an optional capture
fails to match
Language Additions
------------------