Invalid characters in the name of a note #1328
Unanswered
louwelyn-jeremy
asked this question in
Help
Replies: 1 comment
-
You have "smart quotes" instead of regular quotes. replace this line qcFileName = qcFileName.replace(/[^\w\s]/gi, ‘_’); with this line. qcFileName = qcFileName.replace(/[^\w\s]/gi, '_'); Some OSs (I think iOS) have smart quotes enabled by default, which is annoying for coding since they aren't parsed by JavaScript. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Things I have tried
I use this template to create or rename a note and move it to a specific folder :
But I have a problem with for example video name from YouTube when the title of a video has a special character.
I found a solution here
so I try this:
But I have a parsing error --> Template syntax error: Invalid or unexpected token
Where am I wrong ?
Beta Was this translation helpful? Give feedback.
All reactions