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
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