Input comma(,) in VDATE causes crash
- [ ] {{VALUE:Task name}} {{VALUE:⏫,🔼, ,🔽}} 📅 {{VDATE: behind this if I input a comma(,), the whole obsidian gets crashed immediately. Both in macOS and Windows. Anyone help? thanks.
I just ran into the same thing. I believe it's because of the "live preview" thing wherever template interpolation is allowed. I was able to work around it by copy/pasting the whole desired template into the box, e.g., {{VDATE: My Date, YYYY-MM-DD}}
I ran into the same issue as well. The issue can indeed be reproduced if you leave the space for the variable name or the format empty while the app is trying to render it.
Also, nice quick around from @ejensler 👏🏻
Quick reference from where i ran into the issue.
Encountered the same and found this issue when reporting.
While working on VDATE I also have the following observations:
- The preview below the
Capture formatbox always showsInvalid datewhen rendering the VDATE: - Can't use a comma in the VDATE date format, even not when escaped. Tried
{{VDATE:Date, MMM D, YYYY}},{{VDATE:Date, MMM D\, YYYY}},{{VDATE:Date, MMM D[,] YYYY}},{{VDATE:Date, "MMM D, YYYY"}}. Any time using the comma, it will just no longer be recognized as a VDATE variable and be rendered as a string: