From 4167b058de36db2a69fadc6073190c8739648c34 Mon Sep 17 00:00:00 2001 From: Svend Date: Sun, 21 Jul 2019 21:25:51 +0800 Subject: [PATCH] =?UTF-8?q?:bug:=20=E4=BF=AE=E5=A4=8D=E8=87=AA=E5=AE=9A?= =?UTF-8?q?=E4=B9=89=E5=9B=BE=E5=BA=8A-=E4=B8=8A=E4=BC=A0=E5=B7=B2?= =?UTF-8?q?=E5=A4=8D=E5=88=B6=E6=96=87=E4=BB=B6=E6=8F=90=E7=A4=BA=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F=E4=B8=8D=E6=94=AF=E6=8C=81=E7=9A=84bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- uPic/AppDelegate.swift | 2 +- uPic/Supporting Files/Info.plist | 4 ++-- uPic/en.lproj/Localizable.strings | 2 +- uPic/zh-Hans.lproj/Localizable.strings | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/uPic/AppDelegate.swift b/uPic/AppDelegate.swift index a578ab06..f052fdcf 100644 --- a/uPic/AppDelegate.swift +++ b/uPic/AppDelegate.swift @@ -151,7 +151,7 @@ extension AppDelegate { var urls = [URL]() for path in filenames { - if fileExtensions.contains(path.pathExtension.lowercased()) { + if (fileExtensions.count == 0 || fileExtensions.contains(path.pathExtension.lowercased())) { urls.append(URL(fileURLWithPath: path)) } } diff --git a/uPic/Supporting Files/Info.plist b/uPic/Supporting Files/Info.plist index 228fe946..cf6e812e 100644 --- a/uPic/Supporting Files/Info.plist +++ b/uPic/Supporting Files/Info.plist @@ -19,9 +19,9 @@ CFBundlePackageType APPL CFBundleShortVersionString - 0.7.4 + 0.7.5 CFBundleVersion - 20190721 + 20190722 LSApplicationCategoryType public.app-category.utilities LSMinimumSystemVersion diff --git a/uPic/en.lproj/Localizable.strings b/uPic/en.lproj/Localizable.strings index 790eb98d..15314310 100644 --- a/uPic/en.lproj/Localizable.strings +++ b/uPic/en.lproj/Localizable.strings @@ -137,7 +137,7 @@ "host.placeholder.repo" = "Just the repo name, not the repo URL"; "host.placeholder.domain" = "domain:https://xxx.com"; "host.placeholder.domain-has-default" = "Can be empty, there is a default domain"; -"host.placeholder.resultPath" = "The path to the URL field in Response JSON, eg: data/ URL"; +"host.placeholder.resultPath" = "The path to the URL field in Response JSON"; "host.placeholder.custom-domain" = "(optional),When filled, URL = domain + URL path value"; diff --git a/uPic/zh-Hans.lproj/Localizable.strings b/uPic/zh-Hans.lproj/Localizable.strings index cf8a0771..a47ee11b 100644 --- a/uPic/zh-Hans.lproj/Localizable.strings +++ b/uPic/zh-Hans.lproj/Localizable.strings @@ -134,7 +134,7 @@ "host.placeholder.repo" = "只需要仓库名称,而不是仓库连接"; "host.placeholder.domain" = "访问域名:https://xxx.com"; "host.placeholder.domain-has-default" = "可为空,有默认域名"; -"host.placeholder.resultPath" = "返回 JSON 中的URL字段的路径,如:data/url"; +"host.placeholder.resultPath" = "返回 JSON 中的 URL 字段的路径"; "host.placeholder.custom-domain" = "(可选),当填写时,URL = 前缀 + URL 路径值"; /*host type*/