Skip to content

Escape regular expressions with values passed by the user #3505

@glowcloud

Description

@glowcloud

We need to escape regular expressions which are built with values passed by the user:

const re = new RegExp(`{${variable}}`, 'g');

For this, we can use escapeRegExp function from the ramda-adjunct library.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions