From c997d385fa6eacb977938aeed32271fc8c8e613d Mon Sep 17 00:00:00 2001 From: livecodepanos Date: Tue, 26 Feb 2019 16:14:24 +0200 Subject: [PATCH] [15157] Ensure android app identifier is valid --- .../revstandalonesettingsbehavior.livecodescript | 11 +---------- notes/bugfix-15157.md | 1 + 2 files changed, 2 insertions(+), 10 deletions(-) create mode 100644 notes/bugfix-15157.md diff --git a/Toolset/palettes/standalone settings/revstandalonesettingsbehavior.livecodescript b/Toolset/palettes/standalone settings/revstandalonesettingsbehavior.livecodescript index f1b398a022..b5344f5422 100644 --- a/Toolset/palettes/standalone settings/revstandalonesettingsbehavior.livecodescript +++ b/Toolset/palettes/standalone settings/revstandalonesettingsbehavior.livecodescript @@ -221,16 +221,7 @@ function getImageDimensions pImageFile end getImageDimensions function validateIdentifier pIdentifier - local tValid - - put true into tValid - set the itemDelimiter to "." - repeat for each item tItem in pIdentifier - if tItem is a number then - put false into tValid - end if - end repeat - return tValid + return matchText(pIdentifier, "(?i)^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$") end validateIdentifier on revUpdateStandaloneProgress pMessage diff --git a/notes/bugfix-15157.md b/notes/bugfix-15157.md new file mode 100644 index 0000000000..9003c75ba7 --- /dev/null +++ b/notes/bugfix-15157.md @@ -0,0 +1 @@ +# Ensure Android app identifier is valid