blacksmithgu / obsidian-dataview

A data index and query language over Markdown files, for https://obsidian.md/.
https://blacksmithgu.github.io/obsidian-dataview/
MIT License
6.96k stars 410 forks source link

Bug report: DV can't parse obscure unicode characters #1069

Open spoon-m4a opened 2 years ago

spoon-m4a commented 2 years ago

What happened?

I queried a tag that has an obscure character in it, and DV threw an error. I'm on an iPad, not sure if it happens on Desktop, though.

It works with other tags, and if I remove the ⊙ character it works as expected (removes the 14 digit UID, replaces with ->, populates a table). The tag that's breaking the query is accurately defined in other places, like YAML and inline. The error message is below:

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

  1 | TABLE WITHOUT ID (regexreplace(file.name, "(\d{14})", "->")) AS "Name", (link(file.link, "File")) AS "Link", file.mtime AS "Modified"
  2 | 
> 3 | FROM #01_⊙atom 
    |          ^
  4 | SORT desc 
  5 | 

DQL

TABLE WITHOUT ID (regexreplace(file.name, "(\d{14})", "->")) AS "Name", (link(file.link, "File")) AS "Link", file.mtime AS "Modified"

FROM #01_⊙atom 
SORT desc 

JS

No response

Dataview Version

0.4.26

Obsidian Version

1.2.0

Device

iPad Pro, 3rd gen

OS

15.4

AB1908 commented 2 years ago

Hi there, is this still broken on the latest beta version?