valpackett / pcre-heavy

A Haskell regular expressions library that doesn't suck | now on https://codeberg.org/valpackett/pcre-heavy
https://codeberg.org/valpackett/pcre-heavy
The Unlicense
51 stars 6 forks source link

Infinite gsub loop on empty regex #1

Closed chadaustin closed 9 years ago

chadaustin commented 9 years ago
let re = compile "" []
gsub re "" "hello"

This doesn't terminate. I would expect it to not modify the string and return "hello".

valpackett commented 9 years ago

Thanks :D