summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xgeturl.rb2
-rwxr-xr-xmd.rb2
2 files changed, 2 insertions, 2 deletions
diff --git a/geturl.rb b/geturl.rb
index c5422c3..3caf34f 100755
--- a/geturl.rb
+++ b/geturl.rb
@@ -70,7 +70,7 @@ def process_url(url)
if title.start_with?('エラー:')
File.open($OTHER_ERROR_FILE, 'a') { |f| f.puts "URL: #{url}\nエラー: #{title}\n\n" }
else
- File.open($RESULT_FILE, 'a') { |f| f.puts "URL: #{url}\nタイトル: #{title}\n\n" }
+ File.open($RESULT_FILE, 'a') { |f| f.puts "URL: #{url}\nTitle: #{title}\n\n" }
end
puts "URL: #{url}\nタイトル: #{title}\n\n"
end
diff --git a/md.rb b/md.rb
index 24c2eb4..463f79e 100755
--- a/md.rb
+++ b/md.rb
@@ -3,7 +3,7 @@
def convert_to_markdown(input_file, output_file)
content = File.read(input_file, encoding: 'utf-8')
- pairs = content.scan(/URL: (.*?)\nタイトル: (.*?)\n/m)
+ pairs = content.scan(/URL: (.*?)\nTitle: (.*?)\n/m)
File.open(output_file, 'w', encoding: 'utf-8') do |f|
pairs.each do |url, title|