Mercurial > jwe > octave
comparison libinterp/corefcn/regexp.cc @ 31120:d8d90ba892b0
maint: Merge stable to default.
author | Markus Mützel <markus.muetzel@gmx.de> |
---|---|
date | Mon, 04 Jul 2022 21:36:48 +0200 |
parents | 83f9f8bda883 5cf18ef0377c |
children | 7d3bda173b63 |
comparison
equal
deleted
inserted
replaced
31118:bc62d4ad2aae | 31120:d8d90ba892b0 |
---|---|
910 %! warning (ws); | 910 %! warning (ws); |
911 %! end_unwind_protect | 911 %! end_unwind_protect |
912 | 912 |
913 ## segfault test | 913 ## segfault test |
914 %!assert (regexp ("abcde", "."), [1,2,3,4,5]) | 914 %!assert (regexp ("abcde", "."), [1,2,3,4,5]) |
915 %!assert <*62704> (regexpi('(', '\(?'), 1) | |
915 ## Infinite loop test | 916 ## Infinite loop test |
916 %!assert (isempty (regexp ("abcde", ""))) | 917 %!assert (isempty (regexp ("abcde", ""))) |
917 | 918 |
918 ## Check that anchoring of pattern works correctly | 919 ## Check that anchoring of pattern works correctly |
919 %!assert (regexp ('abcabc', '^abc'), 1) | 920 %!assert (regexp ('abcabc', '^abc'), 1) |