Actions
Defect #15666
closedTypo in parse_inline_attachments
Status:
Closed
Priority:
Normal
Assignee:
-
Category:
Text formatting
Target version:
-
Start date:
Due date:
% Done:
0%
Estimated time:
Resolution:
Affected version:
Description
Fix typo
Files
Updated by Toshi MARUYAMA almost 11 years ago
- Status changed from New to Closed
It's not typo.
"ext" means "extension" which is "png", "jpeg", etc.
Updated by Toshi MARUYAMA almost 11 years ago
See regexp.
ext <- $2 <- (bmp|gif|jpg|jpe|jpeg|png)
Updated by Ilya S almost 11 years ago
I mean ext variable assign, but not using anywhere
Updated by Toshi MARUYAMA almost 11 years ago
["test.txt", "test.png"].each do |s|
s.gsub(/([^\/"]+\.(bmp|gif|jpg|jpe|jpeg|png))/) do |m|
filename, ext = $1, $2
puts $2
end
end
$ ruby a.rb png
Updated by Ilya S almost 11 years ago
why do you instantiate ext object if you don't use it at all?
Actions