Ccodemod

codemod/regexp-to-arkregex

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

migrationarkregex
Public
7 executions
Run locally
npx codemod @codemod/regexp-to-arkregex
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.