Skip to content
This repository was archived by the owner on Aug 31, 2021. It is now read-only.

Commit 6210b9b

Browse files
Merge pull request #2039 from livecode/bugfix-15157
[15157] Ensure android app identifier is valid
2 parents abfc389 + c997d38 commit 6210b9b

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

Toolset/palettes/standalone settings/revstandalonesettingsbehavior.livecodescript

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -221,16 +221,7 @@ function getImageDimensions pImageFile
221221
end getImageDimensions
222222

223223
function validateIdentifier pIdentifier
224-
local tValid
225-
226-
put true into tValid
227-
set the itemDelimiter to "."
228-
repeat for each item tItem in pIdentifier
229-
if tItem is a number then
230-
put false into tValid
231-
end if
232-
end repeat
233-
return tValid
224+
return matchText(pIdentifier, "(?i)^[a-z][a-z0-9_]*(\.[a-z][a-z0-9_]*)+$")
234225
end validateIdentifier
235226

236227
on revUpdateStandaloneProgress pMessage

notes/bugfix-15157.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Ensure Android app identifier is valid

0 commit comments

Comments
 (0)