Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Titles with apostrophes no longer work as of v0.6.5 #116

Closed
3 of 7 tasks
gypsyav opened this issue Sep 25, 2023 · 2 comments
Closed
3 of 7 tasks

Titles with apostrophes no longer work as of v0.6.5 #116

gypsyav opened this issue Sep 25, 2023 · 2 comments
Labels
bug Undesired behavior caused by this plugin

Comments

@gypsyav
Copy link

gypsyav commented Sep 25, 2023

  • The Plugin is up to date
  • Obsidian is up to date

Describe the bug
A parsing error occurs if there is an apostrophe in a title such as "Today's"

To Reproduce
Add a title with an apostrophe to a title argument

  1. add input field
    INPUT[input type:metadata]
  2. add title argument
    INPUT[input(title()):metadata]
  3. add title with an apostrophe
    INPUT[input(title(Today's)):metadata]
  4. Parsing error of unexpected character occurs.

Expected behavior
The title for the input field should show

Occurs on

  • Windows
  • macOS
  • Linux
  • Android
  • iOS

Plugin version
0.6.5

Additional context
Title's with ' parsed correctly in versions prior to 0.6.5. Prior to the update this worked fine
```meta-bind
INPUT[number(title(Today's Weight)):weight]
```
After updating the same block produces an error.

@gypsyav gypsyav added the bug Undesired behavior caused by this plugin label Sep 25, 2023
@mProjectsCode
Copy link
Owner

Yes, that is a breaking change.

Try INPUT[number(title('Today\'s Weight')):weight]. (Surrounding the string in quotes and escaping the ' with a backslash)

The new docs that I am currently working on include a section about this.

@gypsyav
Copy link
Author

gypsyav commented Sep 25, 2023

Try INPUT[number(title('Today\'s Weight')):weight]. (Surrounding the string in quotes and escaping the ' with a backslash)

This works. I had tried double quotes " before I filed the report and those gave the same parsing error. I didn't think about trying single quotes.
Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Undesired behavior caused by this plugin
Projects
None yet
Development

No branches or pull requests

2 participants