Skip to content

Allow ignore to accept a function? #1

Closed
@cheapsteak

Description

@cheapsteak

Subject of the feature

I would like want to fine-tune the ignore section of a findAndReplace to ignore replacing things inside e.g. something that has a specific class name; would be nice if i could specify a function so i can customize whether to ignore a node

Problem

only being able to specify tagNames to ignore doesn't give me the granularity i need to ignore the things i want

Expected behaviour

I'd like to be able to pass in a function to ignore, e.g.

ignore: (node: Node) => boolean

Alternatives

Can't think of any

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions