obsidian-dataview: Emojis in tags or YAML front-matter produce parsing error

I think this just started happening with the latest dataview update.

The query (Note: backticks replaced with ’ for rendering)

'''dataview
table file.mtime as Modified
from #🌱
sort file.name asc
'''

gives the following error:

Dataview: Error: 
-- PARSING FAILED --------------------------------------------------

  1 | table file.mtime as Modified
> 2 | from #<img draggable="false" class="emoji" alt="🌱" src="https://twemoji.maxcdn.com/v/13.0.1/72x72/1f331.png">
    |      ^
  3 | sort file.name asc
  4 | 

Expected one of the following: 

'!', '(', '-', 'outgoing(', file link, string, tag ('#hello/stuff')

I get the same error if I try searching for an emoji in YAML front-matter like this:

'''dataview
table file.mtime as Modified
from ""
where note-status = "🌱"
sort file.name asc
'''

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (9 by maintainers)

Commits related to this issue

Most upvoted comments

There are just endless emoji that break the regex, aren’t there?