Skip to content

SedRegex: add support for custom delimiters - #1643

Merged
jlu5 merged 4 commits into
masterfrom
sedregex-configurable-delimiters
Nov 2, 2025
Merged

SedRegex: add support for custom delimiters#1643
jlu5 merged 4 commits into
masterfrom
sedregex-configurable-delimiters

Conversation

@jlu5

@jlu5 jlu5 commented Nov 2, 2025

Copy link
Copy Markdown
Collaborator

Via a new "plugins.SedRegex.delimiters" setting. This defaults to all symbols to match the existing behaviour.

Note that there is some refactoring needed to support this. Since PluginsRegexp expects the regexp to be static (baked into the docstring), I've changed this to be a regular plugin with a custom doPrivmsg handler that does most of the work.

jlu5 added 4 commits November 2, 2025 11:22
This will stop being a constant in a following commit.
We want to make the delimiters set configurable, but this is hard with
pluginRegexp because the regex is baked into the docstring.
Via a new "plugins.SedRegex.delimiters" setting. This defaults to all symbols to match the existing behaviour.

Fixes #1610.
@jlu5
jlu5 force-pushed the sedregex-configurable-delimiters branch from c3f4129 to e814cfe Compare November 2, 2025 20:20
@jlu5
jlu5 requested a review from progval November 2, 2025 20:21
@jlu5
jlu5 merged commit b9ac490 into master Nov 2, 2025
18 checks passed
@jlu5
jlu5 deleted the sedregex-configurable-delimiters branch November 2, 2025 20:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants