making readme a bit clearer

This commit is contained in:
Ted Winslow
2015-07-23 08:55:30 -04:00
parent 2e04ee03c6
commit 212ebd7de6

View File

@@ -62,11 +62,11 @@ wildstring.replace('*/*/*', [ new Date.getMonth() + 1, new Date.getDate(), new D
### You make everything, groovy
You can use your wildcards with wildstring, so you can wildstring everything. You can even turn off case sensitive matching if you want.
You can use your own wildcards with wildstring, so you can wildstring everything. You can even turn off case sensitive matching if you want.
``` js
wildstring.wildcard = 'stuff';
wildstring.match('Test stuff', 'Test wild'); // true, wildcard 'stuff' matches 'wild'
wildstring.replace('stuff stuff', [ 'WILD', 'thing' ]); // 'WILD thing'
wildstring.replace('stuff and stuffthings', [ 'WILD', 'thing' ]); // 'WILD and thingthings'
// turn off case sensitive matching
wildstring.caseSensitive = false;
wildstring.match('tEsT', 'TeSt'); // true, 'test' matches 'test'