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

@ -122,7 +122,7 @@ function escape(symbols) {
var TYPES = {
'number': '\\d',
'word': '\\w'
'word': '\\S'
};
function getFormat() {

View File

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

View File

@ -1,6 +1,6 @@
{
"name": "telegram-api",
"version": "0.4.70",
"version": "0.4.71",
"description": "Control Telegram bots easily using the new Telegram API",
"main": "index.js",
"scripts": {