platers / obsidian-linter

An Obsidian plugin that formats and styles your notes with a focus on configurability and extensibility.
https://platers.github.io/obsidian-linter/
MIT License
1.19k stars 80 forks source link

Bug: Tags are not moved into the YAML frontmatter if they have emoji in it #1138

Closed chablo closed 1 month ago

chablo commented 1 month ago

Describe the Bug

Tags are not moved into the YAML frontmatter if they have emoji in it

How to Reproduce

Steps to reproduce the behavior:

  1. Enable the rule "Move all tags to YAML frontmatter of the document"
  2. Add a tag with an emoji
  3. Lint the file
  4. The tag hasn't moved

To clarify :

Expected Behavior

The whole tag with the emoji is moved in the YAML frontmatter.

Device

pjkaufman commented 1 month ago

Thanks for reporting this @chablo . This is caused by the tag regex. It needs to be updated to allow for emojis as well.

pjkaufman commented 1 month ago

I believe I have a fix for this. I am going to push up a PR and see about getting it merged into master.