Skip to content

fix issue with double quotes in encrypted strings #1

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

fix issue with double quotes in encrypted strings #1

wants to merge 1 commit into from

Conversation

lmahistre
Copy link

If one of the value strings in the input object contains the character ", it raised an "Unexpected identifier" error. It was due to the function eval which evaluated expressions such as : foo = ""bar""
The expression made with concatenations is now constructed with a JSON.stringify, which escapes the double quotes.

If one of the value strings in the input object contains the character ", it raised an "Unexpected identifier" error. It was due to the function eval which evaluated expressions such as : foo = ""bar""
The expression made with concatenations is now constructed with a JSON.stringify, which escapes the double quotes.
@coveralls
Copy link

Coverage Status

Coverage remained the same at 100.0% when pulling aa4b2b9 on lmahistre:master into 6f0c1e6 on hex7c0:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants