Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

How to test regex #101

Open
kirkstrobeck opened this issue May 21, 2018 · 0 comments
Open

How to test regex #101

kirkstrobeck opened this issue May 21, 2018 · 0 comments

Comments

@kirkstrobeck
Copy link

I’m using https://pythex.org with this search = \((.*)\) => { and this string Date.now = () => 1; and it does not match. However, when using that in codemod it is matched. How can I tell codemod to respect the { character.

codemod -m -d lib --extensions js \
    ' = \((.*)\) => {' \
    '(\1) {'
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant