Regex can just stall entirely...
Closed this issue · 0 comments
amilner42 commented
Note the output of this:
const a = `/**
/** All config for the application.
Currently this module works through environment variables. It's better to use flags because you
Currently this module works through environment variables. It's better to use flags because you
Currently this module works through environment variables. It's better to use flags because you
Currently this module works through environment variables. It's better to use flags because you
Currently this module works through environment variables. It's better to use flags because you
@VD amilner42 files
*/`
console.log("A")
const MATCH_VD_COMMENT_TAG_ANNOTATION_REGEX = /((?:\s|.)*?)(^|\r\n|\r|\n|\s)@VD ([a-zA-Z0-9-]*) (block|file|line)(?=\s|$)/
console.log("B")
a.match(MATCH_VD_COMMENT_TAG_ANNOTATION_REGEX)
console.log("C")
it freezes probably because of this