We're updating the issue view to help you get more done. 

Regular expressions don't support Javascript mode flags

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.

Environment

None

Status

Assignee

Bobby Calderwood

Reporter

Bobby Calderwood

Labels

None

Approval

None

Patch

None

Priority

Minor