diff options
author | multiple creatures <dev@multiple-creature.party> | 2019-07-22 17:25:20 -0500 |
---|---|---|
committer | multiple creatures <dev@multiple-creature.party> | 2019-07-22 17:25:20 -0500 |
commit | d82d7e0b2b7f03e17739f511b2f7dd21fac4342f (patch) | |
tree | cb84653cc9dfa5394659adfcf51913ccb85be67e /app/lib | |
parent | 155c324a7b2d12af68289731d38c9fcd4839a3d9 (diff) |
anchor tagger - filenames must have a dot
Diffstat (limited to 'app/lib')
-rw-r--r-- | app/lib/sanitize_config.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/lib/sanitize_config.rb b/app/lib/sanitize_config.rb index bc37cd59a..af675fba3 100644 --- a/app/lib/sanitize_config.rb +++ b/app/lib/sanitize_config.rb @@ -54,7 +54,7 @@ class Sanitize # try to detect filenames href_filename = '/'.in?(href) ? href.rpartition('/')[2] : nil - unless href_filename.blank? + unless href_filename.blank? || !('.'.in?(href_filename)) if text == href_filename node.inner_html = "\xf0\x9f\x93\x8e #{node.inner_html}" return |