From 3da80bb75c33b8441162ef00996e3b80f4e56a0d Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Thu, 26 Nov 2020 01:09:17 +0300 Subject: [PATCH] added experimental '-' to alias identifiers... Signed-off-by: Alex A. Naanou --- actions.js | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/actions.js b/actions.js index 2b35d34..2814d7a 100755 --- a/actions.js +++ b/actions.js @@ -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) }) diff --git a/package.json b/package.json index bf5f9cb..34f2eed 100755 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ig-actions", - "version": "3.24.16", + "version": "3.24.17", "description": "", "main": "actions.js", "scripts": {