Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion bin/textmate
Original file line number Diff line number Diff line change
Expand Up @@ -227,7 +227,7 @@ class TextmateInstaller < Thor
# Copied from http://macromates.com/svn/Bundles/trunk/Support/lib/escape.rb
# escape text to make it useable in a shell script as one “word” (string)
def e_sh(str)
str.to_s.gsub(/(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF\n])/, '\\').gsub(/\n/, "'\n'").sub(/^$/, "''")
str.to_s.gsub(/(?=[^a-zA-Z0-9_.\/\-\x7F-\xFF\n])/n, '\\').gsub(/\n/, "'\n'").sub(/^$/, "''")
end

def url_escape(str)
Expand Down