blacksmithgu / obsidian-dataview

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

Bug report: `regextest` will fail when the key appears more than twice #1945

Open wenbopeng opened 1 year ago

wenbopeng commented 1 year ago

What happened?

regextest will fail when the key appears more than twice

DQL

#test

key:: notetaking

key:: Obsidian

```dataview
table key from #test
where regextest("notion", key)


![image](https://github.com/blacksmithgu/obsidian-dataview/assets/74350447/080dfecf-a476-4563-a3ff-28ad01013f11)

### JS

_No response_

### Dataview Version

0.5.56

### Obsidian Version

v1.3.4

### OS

Windows
wenbopeng commented 1 year ago

If so, the result is correct

```dataview
table key from #test
where contains(regextest("notion",this.key),true)