Fix violations to existing cops from rubocop v1.85.0 (#38015)

This commit is contained in:
Matt Jankowski
2026-03-02 03:47:45 -05:00
committed by GitHub
parent 7f16397f3c
commit d845a8a289
2 changed files with 3 additions and 3 deletions

View File

@@ -39,7 +39,7 @@ class Webhooks::PayloadRenderer
rule(:digit) { match('[0-9]') }
rule(:property_name) { match('[a-z_]').repeat(1) }
rule(:array_index) { digit.repeat(1) }
rule(:segment) { (property_name | array_index) }
rule(:segment) { property_name | array_index }
rule(:path) { property_name >> (dot >> segment).repeat }
rule(:variable) { (str('}}').absent? >> path).repeat.as(:variable) }
rule(:expression) { str('{{') >> variable >> str('}}') }