ansi-to-react
ansi-to-react copied to clipboard
Catastrophic backtracking regex condition
Looks like the current linkify regular expression does not handle well strings with a significant number of whitespaces characters in a row (potentially a Catastrophic backtracking regex condition / ReDoS?)
Here is a reduced test case that replicates the root issue showing the potential regex fix and the current regex crashing