ClojureScript

cljs.reader cannot handle character classes beginning with slashes in regex literals

Details

  • Type: Defect Defect
  • Status: Closed Closed
  • Priority: Critical Critical
  • Resolution: Completed
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:

Description

cljs.user> (cljs.reader/read-string "#\"\\s\"")
Compilation error: Error: Unexpected unicode escape \s

Activity

Hide
Ziyang Hu added a comment - - edited

This in particular means that (cljs.reader/read-string (str [#"\s"])) won't work

Show
Ziyang Hu added a comment - - edited This in particular means that (cljs.reader/read-string (str [#"\s"])) won't work
Hide
Francis Avila added a comment -

Patch and test.

Show
Francis Avila added a comment - Patch and test.

People

Vote (0)
Watch (1)

Dates

  • Created:
    Updated:
    Resolved: