Comparing version 1.0.4 to 1.0.5
{ | ||
"name": "slashes", | ||
"version": "1.0.4", | ||
"version": "1.0.5", | ||
"description": "Add or strip backslashes.", | ||
@@ -5,0 +5,0 @@ "main": "slashes.js", |
@@ -17,6 +17,4 @@ # slashes | ||
The goal of this utility is to make a string safe for concatenation or injection into JavaScript source. | ||
The goal of this utility is to make a string safe for concatenation or injection into JavaScript source. The following | ||
snippet would throw an exception. | ||
```js | ||
@@ -28,5 +26,5 @@ var foo = "\\bar"; | ||
You might expect that to output `\bar` but instead you will see `ar`, because the source string ends up being | ||
`console.log('\bar');` which is interpreted as starting with an escaped "b" rather than a backslash and then a "b". It | ||
can be fixed using he `add` method. | ||
You might expect the above snippet to output `\bar` but instead you will see `ar`, because the source string ends up | ||
being `console.log('\bar');` which is interpreted as starting with an escaped "b" rather than a backslash and then a | ||
"b". It can be fixed using the `add` method. | ||
@@ -33,0 +31,0 @@ ```js |
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
5894
96