Skip to content

Commit

Permalink
Fix boolean conversion causing "false" to be converted to true
Browse files Browse the repository at this point in the history
  • Loading branch information
deniak committed Aug 12, 2015
1 parent 608c98a commit 13ef49b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ Specberus.prototype.validate = function (options) {
self.config.validation = options.validation;
self.config.htmlValidator = options.htmlValidator;
self.config.cssValidator = options.cssValidator;
self.config.noRecTrack = !!options.noRecTrack;
self.config.informativeOnly = !!options.informativeOnly;
self.config.noRecTrack = (options.noRecTrack === "true") ? true : false;
self.config.informativeOnly = (options.informativeOnly === "true") ? true : false;
self.config.patentPolicy = options.patentPolicy;
self.config.processDocument = options.processDocument;
self.config.lang = 'en_GB';
Expand Down

0 comments on commit 13ef49b

Please sign in to comment.