1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

* lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):

reduce redundant backtrack.  [ruby-talk:161771]


git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@9460 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2005-10-24 17:13:42 +00:00
parent def653cd80
commit a7f4a9dc03
2 changed files with 6 additions and 2 deletions

View file

@ -194,8 +194,7 @@ module SM #:nodoc:
LABEL_LIST_RE = /^(
( \[.*?\] (?# labeled )
|\S.*:: (?# note )
)(?=\s|$)
\s*
)(?:\s+|$)
)/x