diff options
author | ThibG <thib@sitedethib.com> | 2021-01-26 23:21:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-26 23:21:32 +0100 |
commit | 52ff3ca675ecac0ff32990b6321fb5e349e6dc59 (patch) | |
tree | eeeeeead25872b19b34b31e3ccbd543d3e2fd9b8 /app/lib/sanitize_config.rb | |
parent | ca6c62068e35537251cc650c8b2d03a1a2163d06 (diff) | |
parent | 00e55445b9aa5a399a9f8b76e42fde9da2c399fd (diff) |
Merge pull request #1491 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/lib/sanitize_config.rb')
-rw-r--r-- | app/lib/sanitize_config.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb index 0fb415bd1..ecaec2f84 100644 --- a/app/lib/sanitize_config.rb +++ b/app/lib/sanitize_config.rb @@ -28,9 +28,9 @@ class Sanitize return unless class_list class_list.keep_if do |e| - next true if e =~ /^(h|p|u|dt|e)-/ # microformats classes - next true if e =~ /^(mention|hashtag)$/ # semantic classes - next true if e =~ /^(ellipsis|invisible)$/ # link formatting classes + next true if /^(h|p|u|dt|e)-/.match?(e) # microformats classes + next true if /^(mention|hashtag)$/.match?(e) # semantic classes + next true if /^(ellipsis|invisible)$/.match?(e) # link formatting classes end node['class'] = class_list.join(' ') |