Skip to content
Open
5 changes: 1 addition & 4 deletions toke.c
Original file line number Diff line number Diff line change
Expand Up @@ -4590,10 +4590,7 @@ S_intuit_more(pTHX_ char *s, char *e,
* written, and regcurly never required a comma, as in {0}. Probably it is
* ok as-is */
if (s[0] == '{') {
if (regcurly(s, e, NULL)) {
return FALSE;
}
return TRUE;
return ! regcurly(s, e, NULL);

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Great change. Former pattern appears to be used in other places, marking such cleanup as my next TODO once my current PR is merged.

}

/* Here is '[': maybe we have a character class. Examine the guts */
Expand Down