diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-24 17:13:42 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2005-10-24 17:13:42 +0000 |
commit | b9ab308ac9ed29d0bbe7e73835743a160652dd5d (patch) | |
tree | 287060f80c3d3e818f671c28af9ae2d4c11290d4 /lib/rdoc/markup | |
parent | 0f3bc037f4b1fb0e510678d7c8fd8e6d9f1aa6a5 (diff) | |
download | ruby-b9ab308ac9ed29d0bbe7e73835743a160652dd5d.tar.gz ruby-b9ab308ac9ed29d0bbe7e73835743a160652dd5d.tar.xz ruby-b9ab308ac9ed29d0bbe7e73835743a160652dd5d.zip |
* lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):
reduce redundant backtrack. [ruby-talk:161771]
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@9460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib/rdoc/markup')
-rw-r--r-- | lib/rdoc/markup/simple_markup.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/rdoc/markup/simple_markup.rb b/lib/rdoc/markup/simple_markup.rb index 21064cb00..8193ca02d 100644 --- a/lib/rdoc/markup/simple_markup.rb +++ b/lib/rdoc/markup/simple_markup.rb @@ -194,8 +194,7 @@ module SM #:nodoc: LABEL_LIST_RE = /^( ( \[.*?\] (?# labeled ) |\S.*:: (?# note ) - )(?=\s|$) - \s* + )(?:\s+|$) )/x |