Closed LoganTann closed 1 year ago
Hey, thanks for picking this up.
The internal Nuxt Content ignores RegExp is a little strange as it "bakes in" the delimiters from unstorage (see this issue) hence the RegExp Nuxt Content Assets passes to it being a little gnarly.
It may be that I didn't test ordered content with it in the demo (though I have in other projects) so let me check and get back to you.
OK, I can confirm that the RegExp is the issue 😢
The good news is that it seems to be solvable, so I'm working on getting a patch release out now.
OK, that's released now:
Works like a charm, thank you for fixing this issue 😁
Thanks for bringing it to my attention.. What a show-stopper! 😬
Description
In nuxt content, the standard way to order articles is to prefix the filename with a number. After processing, this prefix gets automatically removed from the "path" attribute
However, it seems like this plugin registers filenames having a dot before the extension to be completely ignored by nuxt content (may be due to this regex pattern)
To reproduce:
1.test.md
orin.dex.md
)Expected result:
.md
extension should remain visibleContext
http://localhost:3000/api/_content/query
Screenshots
![files list](https://user-images.githubusercontent.com/28659185/234255464-9ba69f54-6b1e-4d4e-8384-809ddecffe9a.png) ![query result](https://user-images.githubusercontent.com/28659185/234255403-710f7990-72c7-4d45-8c11-7a4af56aff66.png)
Environment info