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

Cooking utensils and Ingredient names cut short with "special" characters #29

Open
Yoekkul opened this issue Dec 27, 2022 · 1 comment

Comments

@Yoekkul
Copy link

Yoekkul commented Dec 27, 2022

When inserting ingredients/cooking utensils with umlauts or accents they only get partially highlighted. Examples would look like the following:
@ Möre
#Schäler

@Yoekkul
Copy link
Author

Yoekkul commented Dec 27, 2022

This could probably be fixed by adjusting the regex in cook.js
For instance the regex used to detect ingredients could be replaced with

if(stream.match(/^@([^@#~]+?(?={))/))
          return "ingredient";
        else if(stream.match(/^@([\p{L}\p{M}]+?\b)+/u))
          return "ingredient";

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

1 participant