about summary refs log tree commit diff
path: root/app
diff options
context:
space:
mode:
Diffstat (limited to 'app')
-rw-r--r--app/lib/bangtags.rb5
1 files changed, 4 insertions, 1 deletions
diff --git a/app/lib/bangtags.rb b/app/lib/bangtags.rb
index 900ba9e1c..af9649662 100644
--- a/app/lib/bangtags.rb
+++ b/app/lib/bangtags.rb
@@ -106,7 +106,10 @@ class Bangtags
         next
       end
 
-      next unless chunk.starts_with?('#!')
+      unless chunk.starts_with?('#!')
+        @chunks << chunk
+        next
+      end
 
       orig_chunk = chunk
       chunk.sub!(/(\\:)?+:+?!#\Z/, '\1')