Skip to content

Commit

Permalink
fix: Include parenthesis in ability icon check
Browse files Browse the repository at this point in the history
  • Loading branch information
Mitcheljager committed Nov 27, 2024
1 parent d6bccab commit 46edd9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/helpers/content_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def markdown_hero_icon(text)
end

def markdown_ability_icon(text)
text.gsub /\[ability\s+([\p{L}\p{N}_:.\-\s]+)\]/ do
text.gsub /\[ability\s+([\p{L}\p{N}_:.\(\)\-\s]+)\]/ do
begin
ability_name = ERB::Util.html_escape($1.strip)
ActionController::Base.helpers.image_tag(ability_name_to_icon_url(ability_name), height: 50, loading: "lazy", alt: $1)
Expand Down

0 comments on commit 46edd9d

Please sign in to comment.