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

fix escaped backslashes towards end of string & add test #862

Merged
merged 3 commits into from
Jan 20, 2021
Merged

fix escaped backslashes towards end of string & add test #862

merged 3 commits into from
Jan 20, 2021

Conversation

TimeForANinja
Copy link
Collaborator

@TimeForANinja TimeForANinja commented Jan 20, 2021

instead of nested loops or some lookback regex i decided on adding a simple boolean to track if the current character is escaped by a previous backslash or not

also added a test case to check for this in the future

closes #861

@TimeForANinja TimeForANinja self-assigned this Jan 20, 2021
Copy link
Owner

@fent fent left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

hi, thanks for taking the time to fix this. haven't had much time to work on open source the past couple of weeks >_<

lib/utils.js Outdated Show resolved Hide resolved
TimeForANinja and others added 2 commits January 20, 2021 16:40
Co-authored-by: fent <fentbox@gmail.com>
@TimeForANinja
Copy link
Collaborator Author

hi, thanks for taking the time to fix this. haven't had much time to work on open source the past couple of weeks >_<

all fine
nothing to important
and shows the fun part about open source - others doing your work 😉

@fent fent merged commit 540d50b into fent:master Jan 20, 2021
@github-actions
Copy link

🎉 This PR is included in version 4.4.4 🎉

The release is available on:

Your semantic-release bot 📦🚀

TimeForANinja added a commit to TimeForANinja/node-ytsr that referenced this pull request Jan 20, 2021
* copy the changes provided in fent/node-ytdl-core#862 to ytsr
* this also closes #98
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

cutAfterJSON failing with escaped backslashes
2 participants