Safely test a regex pattern against an input string. Protects against ReDoS by limiting input length.
The regex pattern string from config
The input string to test
Object with test result and any error
Safely test a regex pattern against an input string. Protects against ReDoS by limiting input length.