Uploaded image for project: 'ClojureScript'
  1. CLJS-150

Regular expressions don't support Javascript mode flags

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Completed
    • Affects versions: None
    • Fix versions: None
    • Labels:
      None

      Description

      Currently, the compiler and cljs.core allow for Java mode flags. Javascript doesn't support many of these, and supports one flag not supported by Java - 'g'.

      ClojureScript regular expressions should support only Javascript regex mode flags: 'i', 'm', and 'g'. This applies to Regex literals in the compiler as well as (re-pattern).

      This is a defect in the implementation of CLJS-116 Closed .

        Attachments

          Activity

            People

            • Assignee:
              bobby Bobby Calderwood
              Reporter:
              bobby Bobby Calderwood
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: