Options object is mutated #66

Closed
darrenscerri opened this Issue Dec 19, 2016 · 2 comments

Projects

None yet

2 participants

@darrenscerri
var oldKeys = Object.keys(opts);
xss('test', opts);
var newKeys = Object.keys(opts);

oldKeys.length === newKeys.length

Re-using an opts which has stripIgnoreTag defined, will issue a warning:

Notes: cannot use these two options "stripIgnoreTag" and "onIgnoreTag" at the same time

@leizongmin
Owner

Hi, I just fixed this problem in the new version xss@0.3.3, please try the latest version.

@leizongmin leizongmin added the bug label Dec 20, 2016
@darrenscerri

Looks good, thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment