Permalink
Browse files

[Ruby 1.9.2 compatibility] Use str.chars.map rather than str.map

  • Loading branch information...
radar committed Oct 1, 2010
1 parent 7d84944 commit cc857d87fa547cc50e215c73ed947d299beec3b6
Showing with 1 addition and 1 deletion.
  1. +1 −1 Support/RubyMate/run_script.rb
@@ -31,7 +31,7 @@
htmlize(str).gsub(/[EF]+/, "<span style=\"color: red\">\\&</span>") +
"<br style=\"display: none\"/>"
elsif is_test_script
- out = str.map do |line|
+ out = str.chars.map do |line|
if line =~ /^(\s+)(\S.*?):(\d+)(?::in\s*`(.*?)')?/
indent, file, line, method = $1, $2, $3, $4
url, display_name = '', 'untitled document';

0 comments on commit cc857d8

Please sign in to comment.