Commit Graph

11 Commits

Author SHA1 Message Date
Cohee
b4e7ee05e6 Remove regex replace strategy selector 2024-01-24 16:10:50 +02:00
Cohee
8a7519c6e7 Replace match with $0 2024-01-11 02:41:00 +02:00
kingbri
97cca9467b Regex: Switch filterString to foreach
Foreach is more performat than for const. That was used for debugging.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-01-06 00:33:52 -05:00
kingbri
a0a69e357d Regex: Update to capture group logic
Currently doesn't support the overlay method for regex scripts. That
will have to be added in a future commit.

People can refer to capture groups using $1, $2, etc. {{match}} gets
aliased to $1.

Signed-off-by: kingbri <bdashore3@proton.me>
2024-01-06 00:30:25 -05:00
Cohee
18b11825b3 #1629 Use string replace instead of while loop 2024-01-03 19:53:24 +02:00
Cohee
04d3dcf39f Respect match index in regex scripts replacement 2024-01-03 12:28:56 +02:00
Cohee
64a3564892 lint: Comma dangle 2023-12-02 22:06:57 +02:00
Cohee
c63cd87cc0 lint: Require semicolons 2023-12-02 21:11:06 +02:00
valadaptive
a37f874e38 Require single quotes 2023-12-02 13:04:51 -05:00
Aisu Wata
c94962aa3c Regex script: promptOnly checkbox and feature 2023-11-02 19:52:33 -03:00
Cohee
edd41989fd Initial commit 2023-07-20 20:32:15 +03:00