This regex can be stucked by strings #7354
Labels
Priority:P3
Cosmetic bugs, minor bugs with a clear workaround
Type:Bug
Product defects
.Unable to Reproduce
metabase/frontend/src/metabase/lib/expressions/parser.js
Line 359 in b155205
Hello =), I try to extract all regexes in the project and test them, and find this one can be stucked by inputs. If the string,
error.message
contains too many\n
, like"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n"
, it will be stucked over 30 seconds.Recommend
/(\s)*but found:?/
instead.The text was updated successfully, but these errors were encountered: