Skip to content

fix: use raw string for glitter regex pattern#602

Open
spithash wants to merge 1 commit into
weechat:mainfrom
spithash:patch-1
Open

fix: use raw string for glitter regex pattern#602
spithash wants to merge 1 commit into
weechat:mainfrom
spithash:patch-1

Conversation

@spithash

@spithash spithash commented Jun 8, 2026

Copy link
Copy Markdown

Replace the regex pattern string with a raw string and remove unnecessary escaping of '*' in the character class.

This eliminates the warning emitted by newer python versions:

SyntaxWarning: "*" is an invalid escape sequence. Such sequences will not work in the future.
Did you mean "\*"?

The regex behavior is unchanged.

Replace the regex pattern string with a raw string and
remove unnecessary escaping of '*' in the character class.

This eliminates the warning emitted by newer python
versions:

SyntaxWarning: "\*" is an invalid escape sequence.
Such sequences will not work in the future.
Did you mean "\\*"?

The regex behavior is unchanged.
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.

1 participant