SyntaxError: unterminated parenthetical
Author: jehnaCreated Dec 11, 2020Updated May 26, 2021
From using:
VerEx().startOfLine().then("aaa").or("bbb").endOfLine()I'd expect it to compile to something like:
/^(aaa|bbb)$/...but since endOfLine discards existing suffixes (where there is a capture group close parenthesis from .or), it leaves the capture group open, resulting in:
/^(aaa|bbb$/Source: VerbalExpressions/JSVerbalExpressions