summaryrefslogtreecommitdiffstats
path: root/lib/redcloth3.rb
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-28 10:12:09 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2008-12-28 10:12:09 +0000
commita140c9bd7480c2ac93f22063575fb99ebf654be6 (patch)
tree7b6e0d6329040a7354b25bfde6dfb0789c090081 /lib/redcloth3.rb
parentbde72a5f403805a2a571e26a65a4b7bd37b1a6da (diff)
downloadredmine-a140c9bd7480c2ac93f22063575fb99ebf654be6.tar.gz
redmine-a140c9bd7480c2ac93f22063575fb99ebf654be6.zip
Fixed bold syntax around single character in series (#2351).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@2191 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'lib/redcloth3.rb')
-rw-r--r--lib/redcloth3.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/redcloth3.rb b/lib/redcloth3.rb
index 038522a89..69332395b 100644
--- a/lib/redcloth3.rb
+++ b/lib/redcloth3.rb
@@ -382,14 +382,14 @@ class RedCloth3 < String
(#{rcq})
(#{C})
(?::(\S+?))?
- ([^\s\-].*?[^\s\-]|\w)
+ (\w|[^\s\-].*?[^\s\-])
#{rcq}
(?=[[:punct:]]|\s|\)|$)/x
else
/(#{rcq})
(#{C})
(?::(\S+))?
- ([^\s\-].*?[^\s\-]|\w)
+ (\w|[^\s\-].*?[^\s\-])
#{rcq}/xm
end
[rc, ht, re, rtype]