summaryrefslogtreecommitdiff
path: root/src/tutorial/funcs.c
diff options
context:
space:
mode:
authorTom Lane <tgl@sss.pgh.pa.us>2013-07-31 11:31:40 -0400
committerTom Lane <tgl@sss.pgh.pa.us>2013-07-31 11:31:40 -0400
commitb2bdb7b76f474d703bcc2656b7a9e7a163e73f48 (patch)
treecbe956cd29809a9611183bcb3707706b384b1ab6 /src/tutorial/funcs.c
parent21c2d4cd62f13780449db3337a202e749b85993a (diff)
Fix regexp_matches() handling of zero-length matches.
We'd find the same match twice if it was of zero length and not immediately adjacent to the previous match. replace_text_regexp() got similar cases right, so adjust this search logic to match that. Note that even though the regexp_split_to_xxx() functions share this code, they did not display equivalent misbehavior, because the second match would be considered degenerate and ignored. Jeevan Chalke, with some cosmetic changes by me.
Diffstat (limited to 'src/tutorial/funcs.c')
0 files changed, 0 insertions, 0 deletions