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
Add backtick and Unicode replacement #22
Conversation
index.html
Outdated
| @@ -24,7 +24,10 @@ | |||
| .replace(/</g, "<") | |||
| .replace(/>/g, ">") | |||
| .replace(/"/g, """) | |||
| .replace(/'/g, "'"); | |||
| .replace(/'/g, "'") | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This changes how the tracks are displayed but doesn't address the issue at all. The parser needs to replace these. You will also need to include unit tests.
Here is a similar diff: #2
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
See comment.
parse.js
Outdated
| @@ -75,6 +75,9 @@ function parseTracks(str, lineMode) { | |||
| .replace(/`/g, "'") | |||
| .replace(/[\u2018\u2019]/g, "'"); | |||
|
|
|||
| // Replace double smart quotes with regular apostrophes | |||
| track.title = track.title.replace(/[\u201C\u201D]/g, "'"); | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Smart double quotes need to be replaced with double quotes ".
|
Thanks @mkim219 ! |
Issue #13
Replace back-tick to
'Replace single and double curly quotation to
'and"This change is