Skip to content

Support regex ignorePaths in immutability check #5123

@johnste

Description

@johnste

This is somewhat related to #2553

I have an issue where a path I want to ignore in immutableCheck is somewhat dynamic, so I'd like to use a Regex to match the paths.

However, this doesn't fully work, as trackProperties treats ignorePaths as if they are all string instances

if (ignorePaths.length && ignorePaths.indexOf(childPath) !== -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