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.
@spithash

Copy link
Copy Markdown
Author

I've looked at the author's profile and there's no public repo for the glitter.py plugin.

@flashcode flashcode added the bug Unexpected problem or unintended behavior label Jun 22, 2026
@flashcode flashcode self-assigned this Jun 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected problem or unintended behavior

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants