Skip to content

Commit

Permalink
Add check for url :block
Browse files Browse the repository at this point in the history
  • Loading branch information
bevanjkay committed Jan 10, 2022
1 parent d5448ff commit cc2b99c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,9 @@ class UrlLegacyCommaSeparators < Base

MSG_CSV = "Use 'version.csv.first' instead of 'version.before_comma' and 'version.csv.second' instead of 'version.after_comma'."

def on_url_stanza(stanza)
def on_url_stanza(stanza)
return if stanza.stanza_node.type == :block

url_node = stanza.stanza_node.first_argument

legacy_comma_separator_pattern = /version.(before|after)_comma/
Expand Down

0 comments on commit cc2b99c

Please sign in to comment.