Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not work if the first character of query is non-ascii #10

Closed
ckf42 opened this issue Feb 3, 2022 · 1 comment
Closed

Does not work if the first character of query is non-ascii #10

ckf42 opened this issue Feb 3, 2022 · 1 comment

Comments

@ckf42
Copy link

ckf42 commented Feb 3, 2022

When the first non-whitespace character after the bang is not an ascii word character, the bang is not matched

Examples:

  • !bang words works
  • !bang Français works
  • !bang çççççççç does not work
  • !bang にほんご does not work
  • !bang 👍 does not work
  • !bang emoji 👍 works
  • !bang #👍 does not work

Seems that the issue comes from how \b treats non-ascii characters

@psidex
Copy link
Owner

psidex commented Feb 4, 2022

Thanks, have fixed the broken regex and released v0.9.1

@psidex psidex closed this as completed Feb 4, 2022
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

No branches or pull requests

2 participants