core.match

Regex: only attempt to match string values.

Details

  • Type: Defect Defect
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: None
  • Fix Version/s: None
  • Component/s: None
  • Labels:
    None
  • Patch:
    Code and Test

Description

Before this fix, matching a regex pattern against a non-string value would crash like so:

java.lang.ClassCastException: clojure.lang.Keyword cannot be cast to java.lang.CharSequence
 at clojure.core$re_matcher.invoke (core.clj:4460)
    clojure.core$re_matches.invoke (core.clj:4497)
...

Activity

Hide
Marco Molteni added a comment -

Hello, any plans to work on this bug? (it comes with a patch that fixes it).

Show
Marco Molteni added a comment - Hello, any plans to work on this bug? (it comes with a patch that fixes it).

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated: