Ccodemod

codemod/regexp-to-arkregex

Replace`new RegExp` usages with arkregex's type-safe `regex()` function

migrationarkregex
Public
7 executions
2 stars
How to Use
Run this codemod on your codebase using one of the following commands

The easiest way to run this codemod without installing anything globally:

Documentation

regexp-to-arkregex

Migrate new RegExp() constructor calls to arkregex's type-safe regex() function.

What it does

This codemod automatically transforms your code to use arkregex, a type-safe regex library.

Transformation Example

Before:

typescript

After:

typescript

Ready to contribute?

Build your own codemod and share it with the community.