char *match_least = palloc(strlen(n->val.val.str)+2);
char *match_most = palloc(strlen(n->val.val.str)+2);
int pos, match_pos=0;
- bool found_pipe = false;
+ bool found_special = false;
for (pos = 1; n->val.val.str[pos]; pos++)
{
- if (n->val.val.str[pos] == '|')
+ if (n->val.val.str[pos] == '|' ||
+ if (n->val.val.str[pos] == '{' ||
+ if (n->val.val.str[pos] == '}')
{
- found_pipe = true;
+ found_special = true;
break;
}
if (n->val.val.str[pos] == '\\')
}
/* skip leading ^ */
- if (!found_pipe)
+ if (!found_special)
{
for (pos = 1; n->val.val.str[pos]; pos++)
{