Skip to content

Commit

Permalink
fix linting of icons which use aria
Browse files Browse the repository at this point in the history
  • Loading branch information
hexylena committed Mar 8, 2024
1 parent 6bf50c7 commit b905865
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bin/lint.rb
Original file line number Diff line number Diff line change
Expand Up @@ -345,7 +345,7 @@ def self.check_bad_cite(contents)
def self.check_bad_icon(contents)
find_matching_texts(contents, /{%\s*icon\s+([^%]*)\s*%}/i)
.map do |idx, _text, selected|
icon_key = selected[1].strip
icon_key = selected[1].strip.split(' ')[0]
if jekyll_config['icon-tag'][icon_key].nil?
ReviewDogEmitter.error(
path: @path,
Expand Down

0 comments on commit b905865

Please sign in to comment.