这是indexloc提供的服务,不要输入任何密码
Skip to content

Something is rotten in the state of Pattern parsing #804

@hellerve

Description

@hellerve

The parser for patterns seems not quite right; specifically there seems to be a problem with backlashes. Consider this example:

(Pattern.substitute #"\b" "w\b" "\\\\b" -1) ; => throws an error about an unexpected quote
(Pattern.substitute &(Pattern.init "\b") "w\b" "\\\\b" -1) ; => works fine

(This is courtesy of the famous, revered, and all around great guy @TimDeve)

I volunteer to look into this.

Cheers

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions