Change 'word' argument type from \w to \s – resolves #6
This commit is contained in:
parent
9d470eed7d
commit
5c36581e08
@ -122,7 +122,7 @@ function escape(symbols) {
|
||||
|
||||
var TYPES = {
|
||||
'number': '\\d',
|
||||
'word': '\\w'
|
||||
'word': '\\S'
|
||||
};
|
||||
|
||||
function getFormat() {
|
||||
|
@ -85,7 +85,7 @@ function escape(symbols, append = '') {
|
||||
|
||||
const TYPES = {
|
||||
'number': '\\d',
|
||||
'word': '\\w'
|
||||
'word': '\\S'
|
||||
};
|
||||
|
||||
function getFormat(type = 'word', param = 'required') {
|
||||
|
@ -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": {
|
||||
|
Loading…
Reference in New Issue
Block a user