summary refs log tree commit diff stats
path: root/web
diff options
context:
space:
mode:
authorFlaviu Tamas <tamasflaviu@gmail.com>2014-10-21 16:49:29 -0400
committerFlaviu Tamas <tamasflaviu@gmail.com>2014-10-29 17:54:43 -0400
commitbc3464ede77bba781928b7b0f425373a520077a4 (patch)
tree1ca1d9e09a4211c4c86be0426d1b07f84db2bd3a /web
parent73ff0432dc374057d817c95be074737b82c3024c (diff)
downloadNim-bc3464ede77bba781928b7b0f425373a520077a4.tar.gz
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
Diffstat (limited to 'web')
-rw-r--r--web/news.txt2
1 files changed, 2 insertions, 0 deletions
diff --git a/web/news.txt b/web/news.txt
index c9374558a..c79eb55cc 100644
--- a/web/news.txt
+++ b/web/news.txt
@@ -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
   ------------------