You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@royale.apache.org by GitBox <gi...@apache.org> on 2020/10/27 15:10:44 UTC

[GitHub] [royale-compiler] yishayw opened a new issue #163: Invalid Regex Flag x

yishayw opened a new issue #163:
URL: https://github.com/apache/royale-compiler/issues/163


   -                               var regex : RegExp = /[\s*]+/gx;
   +                               var regex : RegExp = /[\s*]+/g;
   
   The x flag is legal in AS3 but not in js, so the first line should probably yield be a compile time error.


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-compiler] estanglerbm commented on issue #163: Invalid Regex Flag x

Posted by GitBox <gi...@apache.org>.
estanglerbm commented on issue #163:
URL: https://github.com/apache/royale-compiler/issues/163#issuecomment-744481399


   ``new RegExp("a | b", "gx")``
   
   produces this runtime error:
   
   ``Uncaught SyntaxError: invalid regular expression flag x``
   
   The ``x`` is extended syntax, to allow spaces to be in the expression for readability purposes.  The spaces are ignored, unless preceded by a backslash (\\).
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-compiler] yishayw commented on issue #163: Invalid Regex Flag x

Posted by GitBox <gi...@apache.org>.
yishayw commented on issue #163:
URL: https://github.com/apache/royale-compiler/issues/163#issuecomment-717468411


   Not in what I saw... I'll try to come up with a test case when I find the time.
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [royale-compiler] Harbs commented on issue #163: Invalid Regex Flag x

Posted by GitBox <gi...@apache.org>.
Harbs commented on issue #163:
URL: https://github.com/apache/royale-compiler/issues/163#issuecomment-717351201


   I thought I remember the `x` is rewritten?


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org