Permalink
Browse files

Fix example, re #108

  • Loading branch information...
chriso committed Sep 25, 2012
1 parent 6d7c73d commit 531b8800b9efe7eb09f540b9c6ea5bc0c74c5db9
Showing with 2 additions and 2 deletions.
  1. +2 −2 README.md
View
@@ -23,7 +23,7 @@ check('abcdefghijklmnopzrtsuvqxyz').is(/^[a-z]+$/);
//Sanitize / Filter
var int = sanitize('0123').toInt(); //123
var bool = sanitize('true').toBoolean(); //true
-var str = sanitize(' \s\t\r hello \n').trim(); //'hello'
+var str = sanitize(' \t\r hello \n').trim(); //'hello'
var str = sanitize('aaaaaaaaab').ltrim('a'); //'b'
var str = sanitize(large_input_str).xss();
var str = sanitize('&lt;a&gt;').entityDecode(); //'<a>'
@@ -96,7 +96,7 @@ isCreditCard() //Will work against Visa, MasterCard, American E
## List of sanitization / filter methods
```javascript
-trim(chars) //Trim optional `chars`, default is to trim whitespace (\r\n\t\s)
+trim(chars) //Trim optional `chars`, default is to trim whitespace (\r\n\t )
ltrim(chars)
rtrim(chars)
ifNull(replace)

0 comments on commit 531b880

Please sign in to comment.