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 = {
|
var TYPES = {
|
||||||
'number': '\\d',
|
'number': '\\d',
|
||||||
'word': '\\w'
|
'word': '\\S'
|
||||||
};
|
};
|
||||||
|
|
||||||
function getFormat() {
|
function getFormat() {
|
||||||
|
@ -85,7 +85,7 @@ function escape(symbols, append = '') {
|
|||||||
|
|
||||||
const TYPES = {
|
const TYPES = {
|
||||||
'number': '\\d',
|
'number': '\\d',
|
||||||
'word': '\\w'
|
'word': '\\S'
|
||||||
};
|
};
|
||||||
|
|
||||||
function getFormat(type = 'word', param = 'required') {
|
function getFormat(type = 'word', param = 'required') {
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "telegram-api",
|
"name": "telegram-api",
|
||||||
"version": "0.4.70",
|
"version": "0.4.71",
|
||||||
"description": "Control Telegram bots easily using the new Telegram API",
|
"description": "Control Telegram bots easily using the new Telegram API",
|
||||||
"main": "index.js",
|
"main": "index.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user