quickadd icon indicating copy to clipboard operation
quickadd copied to clipboard

Input comma(,) in VDATE causes crash

Open yan9qu opened this issue 2 years ago • 3 comments

  • [ ] {{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.

yan9qu avatar Apr 10 '23 01:04 yan9qu

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}}

ejensler avatar Apr 24 '23 23:04 ejensler

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. image

bohorquezod avatar May 31 '23 02:05 bohorquezod

Encountered the same and found this issue when reporting.

While working on VDATE I also have the following observations:

  • The preview below the Capture format box always shows Invalid date when rendering the VDATE: CleanShot 2024-01-26 at 13 43 57
  • 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: CleanShot 2024-01-26 at 13 47 06

wardweistra avatar Jan 26 '24 12:01 wardweistra