Skip to content

value can be null or undefined#65

Open
jpv wants to merge 26 commits intopdffillerjs:masterfrom
jasonphillips:master
Open

value can be null or undefined#65
jpv wants to merge 26 commits intopdffillerjs:masterfrom
jasonphillips:master

Conversation

@jpv
Copy link

@jpv jpv commented Jan 19, 2018

var escapeString = function escapeString(value) {

let out = (value || "").toString();
out = out.replace(/\/g, "\\");
out = out.replace(/(/g, "\(");
out = out.replace(/)/g, "\)");
out = out.toString("utf8");
return out;
}

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.

3 participants

Comments