added experimental '-' to alias identifiers...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2020-11-26 01:09:17 +03:00
parent 4e78e42200
commit 3da80bb75c
2 changed files with 3 additions and 3 deletions

View File

@ -119,7 +119,7 @@ Object.assign(
'\\d+\\.\\d+|\\d+',
// identifiers...
'[a-zA-Z$@#_][a-zA-Z0-9$@#_\\.]*',
'[a-zA-Z$@#_][a-zA-Z0-9$@#_-\\.]*',
// rest args...
'\\.\\.\\.',
@ -136,7 +136,7 @@ Object.assign(
new parseStringAction.Argument(e.slice(1))
// idetifiers...
// NOTE: keep this last as it is the most general...
: /^[a-zA-Z$@#_][a-zA-Z0-9$@#_\.]*$/.test(e) ?
: /^[a-zA-Z$@#_][a-zA-Z0-9$@#_-\.]*$/.test(e) ?
new parseStringAction.Identifier(e)
: JSON.parse(e) })

View File

@ -1,6 +1,6 @@
{
"name": "ig-actions",
"version": "3.24.16",
"version": "3.24.17",
"description": "",
"main": "actions.js",
"scripts": {