Skip to content

String.split(x: Array[Char]) produces bad regexes #105

Closed
@gzm0

Description

@gzm0

Just like split(x: Char) (see #65), StringLike relies on the \Q, \E escapes for Regex creation. We now have to deal with the following pattern:

[\Q<char>\E\Q<char>\E<etc>]

This produces regexes such as:

[\Q-\E]

Which then cause an exception in the JavaScript regex matcher.

@sjrd Should we handle this as a hack just like #65, knowing that this is substantially more complex?

Metadata

Metadata

Assignees

Labels

bugConfirmed bug. Needs to be fixed.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions