Comparing version 1.8.0 to 1.8.1
@@ -0,1 +1,5 @@ | ||
1.8.1 / 2014-04-23 | ||
------------------ | ||
* bugfix: `toBoolean()`/`toBool()` treat `1` as `true`. (arowla / #78) | ||
1.8.0 / 2014-01-13 | ||
@@ -2,0 +6,0 @@ ------------------ |
@@ -389,3 +389,3 @@ /* | ||
var s = this.s.toLowerCase(); | ||
return s === 'true' || s === 'yes' || s === 'on'; | ||
return s === 'true' || s === 'yes' || s === 'on' || s === '1'; | ||
} else | ||
@@ -392,0 +392,0 @@ return this.orig === true || this.orig === 1; |
{ | ||
"name": "string", | ||
"version": "1.8.0", | ||
"version": "1.8.1", | ||
"description": "string contains methods that aren't included in the vanilla JavaScript string such as escaping html, decoding html entities, stripping tags, etc.", | ||
@@ -5,0 +5,0 @@ "homepage": "http://stringjs.com", |
@@ -963,2 +963,6 @@ [string.js](http://stringjs.com) | ||
Install mocha globally: | ||
$ npm install -g mocha | ||
Then navigate to the installed directory: | ||
@@ -1011,2 +1015,3 @@ | ||
- [1] [Nathan Friedly](https://github.com/nfriedly) | ||
- [1] (Alison Rowland)(https://github.com/arowla) | ||
- `<your name here>` | ||
@@ -1013,0 +1018,0 @@ |
@@ -567,2 +567,4 @@ (function() { | ||
F (S(0).toBoolean()) | ||
T (S('1').toBoolean()) | ||
F (S('0').toBoolean()) | ||
}) | ||
@@ -569,0 +571,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
100547
1532
1052