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

Commit c997d38

Browse files
committed
[15157] Ensure android app identifier is valid
1 parent abfc389 commit c997d38

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)