diff options
author | Ralph Amissah <ralph@amissah.com> | 2007-07-22 02:45:28 +0100 |
---|---|---|
committer | Ralph Amissah <ralph@amissah.com> | 2007-07-22 02:45:28 +0100 |
commit | 4389746982cb56a43e6e394595e50fa47ac4e64a (patch) | |
tree | 015c6f04bae99963be68cabf07ef6965fafd526a | |
parent | vim syntax, matching of url with escape url decoration tag (_url) (diff) |
dal, matching of underscore so as not to be too greedy
-rw-r--r-- | lib/sisu/v0/dal_syntax.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sisu/v0/dal_syntax.rb b/lib/sisu/v0/dal_syntax.rb index a882a2c9..8fc85b87 100644 --- a/lib/sisu/v0/dal_syntax.rb +++ b/lib/sisu/v0/dal_syntax.rb @@ -262,7 +262,7 @@ module Syntax line.gsub!(/(^|\s+|['"]| |\(|\>)\*(\S+?)\*/,'\1<b>\2</b>') #bold single word, watch line.gsub!(/(^|\s+|['"]| |\(|\>)\!(\S+?)\!/,'\1<b>\2</b>') #bold single word, watch line.gsub!(/(^|\s+|['"]| |\(|\>)\/([\(\)a-zA-Z0-9']+?)\/([^a-zA-Z0-9]|[ ,.;:'"~$]|$)/,'\1<i>\2</i>\3') #italics single word, watch - line.gsub!(/(^|\s+|['"]| |\(|\>)_(\S+?)_/,'\1<u>\2</u>') #underscore single word, watch + line.gsub!(/(^|\s+|['"]| |\(|\>)_(\S+?)_([\s.,!?'")]|$)/,'\1<u>\2</u>\3') #underscore single word, watch line.gsub!(/(^|\s+)-([^{]\S+?)-( |$)/,'\1<del>\2</del>\3') #underscore single word, watch line.gsub!(/(^|\s+|['"]| |\(|\>|\d+)\^(\S+?)\^/,'\1<sup>\2</sup>') #superscript single word, watch digit added line.gsub!(/<[:e]\s+(.+?)!?>/,'~{ \1 }~') # not tested |