logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Catmandu::Fix::Condition::any_match - only execute fixes if any path value matches the given regex

Name

       Catmandu::Fix::Condition::any_match - only execute fixes if any path value matches the given regex

See Also

       Catmandu::Fix

perl v5.40.0                                       2025-01-17              Catmandu::Fix:...tion::any_match(3pm)

Synopsis

          # uppercase the value of field 'foo' if at least one member of 'oogly' has the value 'doogly'
          if any_match(oogly, "doogly")
            upcase(foo) # foo => 'BAR'
          end

          # case insensitive search for 'doogly' in 'oogly' fields
          if any_match(oogly.*, "(?i)doogly")
            ...
          end

See Also