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

Improved tag recognition, Chinese character support #119

Merged
merged 2 commits into from
Jan 24, 2021
Merged

Improved tag recognition, Chinese character support #119

merged 2 commits into from
Jan 24, 2021

Conversation

thomaskoppelaar
Copy link
Contributor

@thomaskoppelaar thomaskoppelaar commented Jan 14, 2021

Headings that are part of a URL don't get recognized as tags anymore, and adds support for chinese characters in tags.

Closes: #114 , #115

URLs

I created this request after reading @frankreporting issue. Credit goes to him for the regex.
A possible addition to this PR could be to make this a configurable option, in case that someone does use URL headings as tags. I highly doubt it though, and this seems like a great improvement to this extension.

Chinese character support

Also a very short change in some regex patterns: Mainly changing instances of \w into \p{L}, which captures all unicode letters rather than letters from the latin alphabet. also sets the unicode flag u for some regex patterns.

Headings that are part of a URL don't get recognized as tags anymore.
@thomaskoppelaar thomaskoppelaar changed the title Improved tag recognition Improved tag recognition, Chinese character support Jan 14, 2021
@kortina kortina merged commit a997cf6 into kortina:master Jan 24, 2021
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.

Tag recognition is too tolerant
2 participants