New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Make re module return nil for unmatched captures instead of empty string #1364
Conversation
This sounds like it will break a lot of code. |
@dom96 I doubt that much code uses the peg module. What could be done is create a define() symbol for the old behavior. What is the deprecation path for these things? |
This doesn't edit the behaviour of the pegs module. What is the point in creating a define()? You may as well just change your code to check for nil at that point. |
oops, I somehow closed this accdently |
@Araq do we want this pulled in? |
Conflicts: compiler/ast.nim compiler/nimfix/prettybase.nim compiler/pragmas.nim compiler/sempass2.nim doc/manual.txt koch.nim lib/pure/concurrency/threadpool.nim web/news.txt
Enhance trimcc
Yes, it looks scary, but it should merge cleanly onto big-break |
Conflicts: compiler/nim.ini doc/manual.txt doc/tut2.txt koch.nim lib/system/channels.nim readme.txt tools/niminst/niminst.nim tools/nimweb.nim web/download.txt web/news.txt
Fixed FD_SET casing
Conflicts: readme.md
Conflicts: web/news.txt
Add nimblepath so Nim can find Nimble-installed packages out-of-the-box
An empty match will return "" A zero-length match will return nil Add test cases Add news information
- tests included - news.txt updated
Closing in preference for a PR against the correct branch. |
(foo)?
!=((?:foo)?)