summaryrefslogtreecommitdiff
path: root/md.rb
diff options
context:
space:
mode:
authorhaturatu <taro@eyes4you.org>2024-10-09 01:37:37 +0900
committerhaturatu <taro@eyes4you.org>2024-10-09 01:37:37 +0900
commit9f6b3b2b7c9e757c108ffc87694826cf20fc642e (patch)
tree135c99de5fce87cdea4d511468cfed4fa8524d9a /md.rb
parent031b8014901bd101d92af148a841e9b9c8fb59f5 (diff)
Diffstat (limited to 'md.rb')
-rwxr-xr-xmd.rb2
1 files changed, 1 insertions, 1 deletions
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|