E-mail addresses with hyphens not recognised
The email:
results in the link
mailto:second@somewhere.comWorkaround
Type
"first-second@somewhere.com":mailto:first-second@somewhere.comlike
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.