From 5c36581e089a45390b03aa692e25aac0b0dc5558 Mon Sep 17 00:00:00 2001 From: Mahdi Dibaiee Date: Tue, 7 Jul 2015 01:54:29 +0430 Subject: [PATCH] =?UTF-8?q?Change=20'word'=20argument=20type=20from=20\w?= =?UTF-8?q?=20to=20\s=20=E2=80=93=20resolves=20#6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/functions/argument-parser.js | 2 +- lib/functions/argument-parser.js | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/build/functions/argument-parser.js b/build/functions/argument-parser.js index 03e43ef..bc29f5a 100644 --- a/build/functions/argument-parser.js +++ b/build/functions/argument-parser.js @@ -122,7 +122,7 @@ function escape(symbols) { var TYPES = { 'number': '\\d', - 'word': '\\w' + 'word': '\\S' }; function getFormat() { diff --git a/lib/functions/argument-parser.js b/lib/functions/argument-parser.js index 43591c1..8589bad 100644 --- a/lib/functions/argument-parser.js +++ b/lib/functions/argument-parser.js @@ -85,7 +85,7 @@ function escape(symbols, append = '') { const TYPES = { 'number': '\\d', - 'word': '\\w' + 'word': '\\S' }; function getFormat(type = 'word', param = 'required') { diff --git a/package.json b/package.json index 5d263c1..61cccb8 100644 --- a/package.json +++ b/package.json @@ -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": {