You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by gr...@apache.org on 2020/01/02 02:59:51 UTC
[royale-asjs] 01/03: Fix isXMLName
This is an automated email from the ASF dual-hosted git repository.
gregdove pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git
commit 077d33613e4230eaeacceb72ace9c5103d1cac25
Author: greg-dove <gr...@gmail.com>
AuthorDate: Thu Jan 2 14:35:29 2020 +1300
Fix isXMLName
---
frameworks/projects/Language/src/main/royale/isXMLName.as | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frameworks/projects/Language/src/main/royale/isXMLName.as b/frameworks/projects/Language/src/main/royale/isXMLName.as
index 5efc4a9..802f41e 100644
--- a/frameworks/projects/Language/src/main/royale/isXMLName.as
+++ b/frameworks/projects/Language/src/main/royale/isXMLName.as
@@ -387,7 +387,7 @@ const combiningCharsTable:Array = [
];
function isInTable(table:Array, charCode:uint):Boolean{
- var upper:uint = table.length*.5;
+ var upper:uint = table.length;
for (var i:uint =0; i<upper; i+=2) {
if (charCode >= table[i] && charCode <= table[i+1]) return true;
}