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

How to test regex #101

@kirkstrobeck

Description

@kirkstrobeck

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) {'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions