Fixed bug: E-mail addresses with hyphens not recognised

E-mail addresses with hyphens not recognised

The email:

first-second@somewhere.com

results in the link

mailto:second@somewhere.com

Workaround

Type

"first-second@somewhere.com":mailto:first-second@somewhere.com

like

first-second@somewhere.com

Fix

The fix to the regexp in the WikiRedcloth class in lib/soks-view.rb is below.


Index: soks-view.rb
===================================================================
RCS file: /var/cvs/soks/soks/lib/soks-view.rb,v
retrieving revision 1.42
diff -r1.42 soks-view.rb
207c207
<         text.gsub!(/[A-Za-z0-9.]+?@[A-Za-z0-9.]*[A-Za-z]/)    { |m| link( "mailto:#{m}", m) }
---
>         text.gsub!(/[A-Za-z0-9.-]+?@[A-Za-z0-9.-]*[A-Za-z]/)    { |m| link( "mailto:#{m}", m) }

Fixed in v1-0-1

Edit this page or watch for changes using RSS.