1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2024-05-21 07:26:05 +02:00
Commit Graph

19 Commits

Author SHA1 Message Date
Oliver Kiddle 698af7bc13 52405, 52502: add empty elements to $match for optional captures that don't match 2024-01-26 07:33:38 +01:00
Oliver Kiddle b4d1c756f5 51738: support pcre's alternative DFA matching algorithm 2023-05-13 00:59:00 +02:00
Oliver Kiddle f3f371deb3 51728: assign pcre named capture groups to a hash 2023-05-13 00:56:48 +02:00
Oliver Kiddle b62e911341 51723: migrate pcre module to pcre2 2023-05-13 00:53:32 +02:00
Jun-ichi Takimoto 1b421e4978 50658 + test: Enable to switch between C/UTF-8 locales in PCRE 2022-09-26 10:52:50 +09:00
Jun-ichi Takimoto 4fc5dc0292 50629: do not use egrep in tests 2022-09-15 18:56:20 +09:00
Daniel Shahaf 5e55e3eaf8 unposted: Fix syntax error introduced in 45591. 2020-03-28 00:56:22 +00:00
Daniel Shahaf 32c4ed3977 45591 (Cf. 45587, 45620): In the test suite, centralize testing that compiled modules can be loaded successfully.
Have V01zmodload.ztst check that all modules enabled in config.modules
load successfully.  With this change, the test files for individual
modules may assume that if 'zmodload' fails that must be because the
module hadn't been compiled in, and mark themselves as skipped in that
case.
2020-03-27 01:14:42 +00:00
Daniel Shahaf dc2bfeee26 43493: Have V07pcre fail if PCRE was enabled by configure (config.modules) but failed to load for any reason. 2018-09-24 14:15:18 +00:00
Peter Stephenson 74aff4106a 41542: Fix pcre logic for extracting matched parentheses.
When we went off the end of the array but measured the length
implicitly, we got lucky before.  After 41308 we were looking up lengths
in stale memory.

Rename some variables, clean up the logic, be easier to understand.

Add tests.
2017-08-14 11:17:48 +01:00
Phil Pennock b5f40f4156 41527 (tweaked for heap memory): fix [[ -<cond> ]] from modules 2017-08-11 15:02:06 +01:00
Phil Pennock 825f84c77e 41308 (tweaked): behaviour of PCRE with NUL bytes 2017-06-22 09:24:33 +01:00
Barton E. Schaefer 222dea055c Mikael Berthe: 38307: PCRE segfault when parenthesized group matches nothing
unposted: regression test for 38307
2016-04-23 14:20:16 -07:00
Barton E. Schaefer 5eae5b58b1 Jun T.: 37515: multibyte handling as per 35448. 2016-01-08 20:42:00 -08:00
Barton E. Schaefer 99f42d8ce0 34344: fix 34338, pcre builtins need loading too 2015-01-22 10:12:57 -08:00
Barton E. Schaefer cc52a51eae 34338: check pcre-match feature availability
It is possible for the module to be linked/loadable but have no features.
2015-01-22 09:33:29 -08:00
Barton E. Schaefer 956829c18e 33122: typo from 32891 caused incorrect matches for pcre_match -n 2014-09-07 10:48:32 -07:00
Phil Pennock fe15a9e2bb 29867: pcre/ZTST_unimplemented change from Bart 2011-10-26 23:28:26 +00:00
Phil Pennock 2f3c16d40f 29838: metafy/unmetafy strings for PCRE matching (UTF-8 fixes) 2011-10-24 11:31:25 +00:00