Skip to content

Escapes single quotes in value names.#4

Open
zcapper wants to merge 1 commit intowhtouche:masterfrom
zcapper:master
Open

Escapes single quotes in value names.#4
zcapper wants to merge 1 commit intowhtouche:masterfrom
zcapper:master

Conversation

@zcapper
Copy link
Copy Markdown

@zcapper zcapper commented May 11, 2017

Currently console logging:
this.props.document.get('currentDocumentId')
yields
console.log('this.props.document.get('currentDocumentId'): ', this.props.document.get('currentDocumentId'));
which is invalid JS syntax, as the single quotes aren't escaped, instead of
console.log('this.props.document.get(\'currentDocumentId\'): ', this.props.document.get('currentDocumentId'));.

Alternatively single quotes in value names could also be replaced by curly single quotes('), backticks(`), double quotes("), etc...

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.

1 participant