Uploaded image for project: 'Enyo'
  1. ENYO-4118

Global flag on token regexp breaks enyo.Router on Android native browser

    Details

    • Type: Bug
    • Status: Closed
    • Priority: None
    • Resolution: Fixed
    • Affects versions: 2.5.0
    • Fix versions: None
    • Components: enyo
    • Labels:
      None
    • Environment:

      Android (tested on 4.4, but might affect other versions too), using Android native browser.

    • Sprint:

      Description

      The token used by enyo.Router to distinguish dynamic routes from static routes is unreliable.

      As pointed out by Ryan Duffy this is likely caused by the global option. When fusing the global flag, the RegExp object remembers the last index: http://forums.enyojs.com/discussion/comment/9409#Comment_9409

        Attachments

          Activity

            People

            • Assignee:
              screener Screener (Enyo Team) (Inactive)
              Reporter:
              ruben.vreeken Ruben Vreeken
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: