]> git.lizzy.rs Git - rust.git/commit
Fixes #13843.
authorAndrew Gallant <jamslam@gmail.com>
Wed, 4 Jun 2014 03:04:59 +0000 (23:04 -0400)
committerAndrew Gallant <jamslam@gmail.com>
Wed, 4 Jun 2014 03:04:59 +0000 (23:04 -0400)
commit9d39178f2f60b6076e4bd00e263f2304084f34b4
tree79d7933e3f1461c45acb51d1162e7cbcae50dba0
parentf5ead0dd66ab7c3aaaaabcc34e1726a4acd74b07
Fixes #13843.

An empty regex is a valid regex that always matches. This behavior
is consistent with at least Go and Python.

A couple regression tests are included.
src/libregex/parse/mod.rs
src/libregex/test/tests.rs