Change 'word' argument type from \w to \s – resolves #6

This commit is contained in:
Mahdi Dibaiee
2015-07-07 01:54:29 +04:30
parent 9d470eed7d
commit 5c36581e08
3 changed files with 3 additions and 3 deletions

View File

@ -85,7 +85,7 @@ function escape(symbols, append = '') {
const TYPES = {
'number': '\\d',
'word': '\\w'
'word': '\\S'
};
function getFormat(type = 'word', param = 'required') {