aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v0/spell.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2007-09-23 05:16:53 +0100
committerRalph Amissah <ralph@amissah.com>2007-09-23 05:16:53 +0100
commitbcd7f88ba20b1dbc956522d90fca4f1982dddcef (patch)
treefea6227b42001b2949635b36daaf30da864e53ce /lib/sisu/v0/spell.rb
parentMerge branch 'upstream' into debian/sid (diff)
parentprimarily todo with sisu documentation, changelog reproduced below: (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v0/spell.rb')
-rw-r--r--lib/sisu/v0/spell.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v0/spell.rb b/lib/sisu/v0/spell.rb
index 6ddddb5d..cc9e99e7 100644
--- a/lib/sisu/v0/spell.rb
+++ b/lib/sisu/v0/spell.rb
@@ -68,7 +68,7 @@ module Utility
end
def check
@input.each do |data|
- data.gsub!(/(http|www|ftp|gopher|png|jpg|gif|html|htm|&nbsp;)\S+/i,' ')
+ data.gsub!(/(https?|www|ftp|gopher|png|jpg|gif|html|htm|&nbsp;)\S+/i,' ')
data.gsub!(/<\/?(table|tr|td|b|p|href).*?>/i,' ')
data.gsub!(/(<==.+|<:\S+>|<!.+?!>|^0~.+|\{\{\{|~)/,' ')
data.gsub!(/(["|<>)(\n'`'.;&_-]|\=)/,' ')