Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
History for s2/mod/regex_js/test.s2
|
2020-02-09
| ||
| 13:12 | regex modules: removed integer-style regex flags from the APIs. The string forms are simply much easier to use and don't require all the extra single-flag properties. file: 1ba8c518b4 check-in: [5131c0341e] user: stephan branch: trunk, size: 2692 | |
|
2020-01-31
| ||
| 16:39 | Lots of work on the regex modules. Introduced the '$' and 'E' match flags to replace() to handle captures and allow eval'ing of the replacement string, respectively. More code consolidation. file: 8f50578866 check-in: [b3ec91b6eb] user: stephan branch: trunk, size: 2813 | |
| 09:23 | Infrastructure to allow s2sh to install static modules to s2 properties other than their module name. e.g. regex_js and regex_posix can now be installed as s2.regex.js and s2.regex.posix. We also install the historical names to keep certain scripts which may dynamically load modules running. file: 99d1d71e22 check-in: [4e3a6ecf91] user: stephan branch: trunk, size: 2768 | |
| 05:04 | POSIX regexes now compile in EXTENDED mode by default and compile/match flags for POSIX/JS may now be provided using letters instead of a bitmask, e.g. regcomp.ICASE==>'i'. Some regex module code consolidation. file: 5f60d573ca check-in: [ebbf1ffa5f] user: stephan branch: trunk, size: 2755 | |
|
2020-01-30
| ||
| 15:13 | Added JS/POSIX regex.split() method plus a bit of related refactoring, including consolidating many of their tests into a single script. file: 99421918eb check-in: [bc6d47ea5b] user: stephan branch: trunk, size: 2533 | |
| 10:19 | (Finally) implemented regex.replace() for the JS and POSIX regex s2 modules. file: 64f51b1b20 check-in: [1e2d468d0c] user: stephan branch: trunk, size: 8120 | |
|
2019-12-19
| ||
| 01:22 | Expanded the POSIX/JS regex matchAll() methods to be able to optionally return arrays of all sub-captures, rather than just the full-pattern match strings. file: b27e5b728f check-in: [7f3ec9c8f9] user: stephan branch: trunk, size: 6996 | |
|
2019-12-08
| ||
| 12:59 | POSIX regexes with NOSUB now return true on match instead of erroring if the match contains capture groups. Added test for reaching capture limit of POSIX regexes (it simply fails to record subsequent captures, as opposed to erroring like the JS module does, because of differences in the respective underlying C APIs). file: 9702d51138 check-in: [bccf21f460] user: stephan branch: trunk, size: 6156 | |
| 11:36 | Added matchAll() methods to POSIX/JS regex modules. Pulled in the latest upstream JS regex code. Expanded regex test scripts. file: 618832fed1 check-in: [231c2a6a25] user: stephan branch: trunk, size: 6169 | |
|
2018-11-25
| ||
| 08:54 | Renamed script-side regex type names for consistency. file: e4bcfd8275 check-in: [8f15c60857] user: stephan branch: trunk, size: 5256 | |
| 06:38 | Made the various regex flags const. file: 49575dadfc check-in: [f8a8dfb54b] user: stephan branch: trunk, size: 5255 | |
| 04:47 | Renamed s2/mod/jsregex/test.s2 → s2/mod/regex_js/test.s2. Renamed module jsregex to regex_js. And now i hate the underscore in the name in s2.regex_{posix,js} :/. file: d635ca3fd1 check-in: [76b78f5c07] user: stephan branch: trunk, size: 5077 | |