|
@@ -170,9 +170,8 @@ task :autofix do
|
|
text = "\"#{text}\""
|
|
text = "\"#{text}\""
|
|
elsif link =~ /\A[\[\]'"\\]*\z/
|
|
elsif link =~ /\A[\[\]'"\\]*\z/
|
|
text.gsub!(/(?<!\\)'/) { "\\'" }
|
|
text.gsub!(/(?<!\\)'/) { "\\'" }
|
|
- text.gsub!(/(?<!\\)"/) { "\\\"" }
|
|
|
|
- text.gsub!(/(?<!\\)\\(?!['"])/) { "\\\\" }
|
|
|
|
- text = "'" + (text.gsub("'") { "\\'" }) + "'"
|
|
|
|
|
|
+ text.gsub!(/(?<!\\)\\(?!')/) { "\\\\" }
|
|
|
|
+ text = "'" + text + "'"
|
|
end
|
|
end
|
|
"[[#{text}->#{dest}]#{link_mods}]"
|
|
"[[#{text}->#{dest}]#{link_mods}]"
|
|
else
|
|
else
|