You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2018/12/27 10:01:49 UTC

[royale-asjs] branch develop updated: fix QName Namespace lookups to match new format

This is an automated email from the ASF dual-hosted git repository.

aharui pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new 52fb132  fix QName Namespace lookups to match new format
52fb132 is described below

commit 52fb132168eede607b6615093ae58b99046837a9
Author: Alex Harui <ah...@apache.org>
AuthorDate: Thu Dec 27 02:01:34 2018 -0800

    fix QName Namespace lookups to match new format
---
 frameworks/projects/Language/src/main/royale/QName.as | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/frameworks/projects/Language/src/main/royale/QName.as b/frameworks/projects/Language/src/main/royale/QName.as
index fe34d5f..f19d57d 100644
--- a/frameworks/projects/Language/src/main/royale/QName.as
+++ b/frameworks/projects/Language/src/main/royale/QName.as
@@ -108,7 +108,10 @@ package
 		public function toString():String
 		{
 			var uriVal:String = _uri ? _uri : "*";
-			return uriVal + "::" + _localName;
+            uriVal = uriVal.replace(/:/g, "_");
+            uriVal = uriVal.replace(/\./g, "_");
+            uriVal = uriVal.replace(/\//g, "$");
+			return uriVal + "__" + _localName;
 		}
 
 		COMPILE::JS