safe-regex detect potentially catastrophic exponential-time regular expressions by limiting the star height to 1 WARNING: This module merely seems to work given all the catastrophic regular expressions I could find scouring the internet, but I don't have enough of a background in automata to be absolutely sure that this module will catch all exponential-time cases. example