[CLJS-150] Regular expressions don't support Javascript mode flags Created: 16/Feb/12 Updated: 16/Feb/12 Due: 24/Feb/12 |
|
| Status: | Open |
| Project: | ClojureScript |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Defect | Priority: | Major |
| Reporter: | Bobby Calderwood | Assignee: | Bobby Calderwood |
| Resolution: | Unresolved | Votes: | 0 |
| 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 |
| Comments |
| Comment by David Nolen [ 16/Feb/12 3:33 PM ] |
|
The defect existed prior to |