Skip to content

Commit 4ddcfa5

Browse files
committed
Fixed single quote escaping and added double quote escaping.
1 parent ef10085 commit 4ddcfa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/svn2git/migration.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def parse(args)
146146
end
147147

148148
def self.escape_quotes(str)
149-
str.gsub("'", "'\\\\''")
149+
str.gsub(/'|"/) { |c| "\\#{c}" }
150150
end
151151

152152
def escape_quotes(str)

0 commit comments

Comments
 (0)