commit | cfc37be4862574ac68f424a42763cf5681243812 | [log] [tgz] |
---|---|---|
author | Roberto E. Vargas Caballero <k0ga@shike2.com> | Sat Jan 23 09:11:33 2016 +0100 |
committer | sin <sin@2f30.org> | Sat Jan 23 08:38:03 2016 +0000 |
tree | 70300f0c4d0a0968d667e5840c22f021c858ee6e | |
parent | 0d955d3f23f322d3b2b2ffda8287f548f88c3e19 [diff] |
Do not try to rematch patterns with ^ or $ It is impossible to rematch a pattern which has one (or both) of these operators, so the simplest solucion is detect them while we are compiling the regular expression and break the match loop after the first iteration.