Defect #12451 ยป wiki_formatting_macros.rb.patch
macros.rb 2012-11-26 21:35:59.311226410 +0000 | ||
---|---|---|
48 | 48 | |
49 | 49 |
def extract_macro_options(args, *keys) |
50 | 50 |
options = {} |
51 |
while args.last.to_s.strip =~ %r{^(.+)\=(.+)$} && keys.include?($1.downcase.to_sym) |
|
51 |
while args.last.to_s.strip =~ %r{^(.+?)\=(.+)$} && keys.include?($1.downcase.to_sym)
|
|
52 | 52 |
options[$1.downcase.to_sym] = $2 |
53 | 53 |
args.pop |
54 | 54 |
end |