Changes between Initial Version and Version 2 of Ticket #5478


Ignore:
Timestamp:
Dec 30, 2007, 5:17:00 PM (12 years ago)
Author:
Adam Peller
Comment:

When I enter this in plain Rhino (including the latest release) it comes back with a syntax error on the "~" near the end.

So, perhaps this is a Rhino bug? If so, this should be marked invalid and pursued in bugzilla. Or, perhaps there is some issue with non-standard JS regexp syntax?

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #5478

    • Property Owner changed from anonymous to alex
    • Property Cc michael@… added
    • Property Component changed from General to ShrinkSafe
  • Ticket #5478 – Description

    initial v2  
    77The presence of this regex pattern in my script:
    88
     9{{{
    910var patt=/((ftp://|http://|https://|ftp://www.|http://www.|https://www.|www.)(([A-Za-z0-9$_.+!*(),;/?:@&~=-])|%[A-Fa-f0-9]{2}){2,}(#([a-zA-Z0-9][a-zA-Z0-9$_.+!*(),;/?:@&~=%-]*))?([A-Za-z0-9$_+!*();/?:~-]))/gi;
     11}}}
    1012
    1113which matches urls, causes Shrinksafe to output "null" for the entire script. I have tested with this line alone as well, and again, Shrinksafe outputs "null".