Wolfsblvt
66d609c35f
Several million refactoring of existing slash commands with enums (really)
2024-06-17 07:04:10 +02:00
steve green
00fc40408a
allow char scpoed regex ( #2271 )
...
* Update engine.js to allow char scpoed regex
no ui because i'm not good at it, but works.
* add typedef
* update
* little fix
* Rework scoped scripts UI
* Add locale attributes
* Purge allowance on delete
* add d&d for `saved_scoped_scripts`
* better code
* Save settings on regex scope toggle
* Fix reordering logic
* Fix scoped setter
* Add unique ids for regex scripts
* Wording
* Reload chat after deleting scripts
* Reload chat after toggling scoped regex
---------
Co-authored-by: Cohee <18619528+Cohee1207@users.noreply.github.com>
2024-05-26 17:19:00 +03:00
Cohee
909ec4191d
Allow JS syntax in instruct activation regex
2024-05-17 01:14:07 +03:00
Cohee
3c0664dfb6
Fix naming and improve regex application
2024-05-08 20:10:52 +03:00
steve green
d2477bba0c
also run regex on worldinfo
2024-05-08 23:41:18 +08:00
Cohee
176befcf8c
Fix more than 9 regex groups
2024-03-21 12:12:22 +02:00
Cohee
b7921f1edd
#1630 Fix regex depth application
2024-02-04 21:34:17 +02:00
Cohee
3f3529ef89
#1630 Add min/max depth for prompt/display regex scripts.
2024-01-24 22:48:58 +02:00
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