From dd2e228858ac70bc759a6b1230334c85edc186c1 Mon Sep 17 00:00:00 2001 From: risou Date: Fri, 18 Oct 2019 11:40:09 +0900 Subject: [PATCH] Normalize query string from NFD to NFC --- src/google-drive.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/google-drive.rb b/src/google-drive.rb index 0af0d61..093ac82 100755 --- a/src/google-drive.rb +++ b/src/google-drive.rb @@ -472,7 +472,7 @@ def self.latest(include_prereleases = false) STDERR << "Failed to create document.\nServer responded with status #{response.code}\n" end elsif ARGV[0] == '--filter' - filter = ARGV[1].to_s.strip + filter = ARGV[1].to_s.strip.unicode_normalize(:nfc) name = filter =~ /\S+\s(.+)/ ? $1 : nil res = [