From 6301af9fbd3950c602fb064bf6ea283d942962c3 Mon Sep 17 00:00:00 2001 From: DreamPiggy Date: Fri, 14 Aug 2020 17:10:29 +0800 Subject: [PATCH] Bumped version to 1.5.2 --- SDWebImageSVGCoder.podspec | 2 +- SDWebImageSVGCoder/Classes/SDImageSVGCoder.m | 2 +- SDWebImageSVGCoder/Module/Info.plist | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/SDWebImageSVGCoder.podspec b/SDWebImageSVGCoder.podspec index f3c1c9a..58730b7 100644 --- a/SDWebImageSVGCoder.podspec +++ b/SDWebImageSVGCoder.podspec @@ -8,7 +8,7 @@ Pod::Spec.new do |s| s.name = 'SDWebImageSVGCoder' - s.version = '1.5.1' + s.version = '1.5.2' s.summary = 'A SVG coder plugin for SDWebImage, using Apple built-in framework' # This description is used to generate tags and improve search results. diff --git a/SDWebImageSVGCoder/Classes/SDImageSVGCoder.m b/SDWebImageSVGCoder/Classes/SDImageSVGCoder.m index 0d8147c..a44ce44 100644 --- a/SDWebImageSVGCoder/Classes/SDImageSVGCoder.m +++ b/SDWebImageSVGCoder/Classes/SDImageSVGCoder.m @@ -261,7 +261,7 @@ + (BOOL)isSVGFormatForData:(NSData *)data { if (!data) { return NO; } - + // Check end with SVG tag return [data rangeOfData:[kSVGTagEnd dataUsingEncoding:NSUTF8StringEncoding] options:NSDataSearchBackwards range: NSMakeRange(data.length - MIN(100, data.length), MIN(100, data.length))].location != NSNotFound; } diff --git a/SDWebImageSVGCoder/Module/Info.plist b/SDWebImageSVGCoder/Module/Info.plist index 5d18916..32e7749 100644 --- a/SDWebImageSVGCoder/Module/Info.plist +++ b/SDWebImageSVGCoder/Module/Info.plist @@ -15,8 +15,8 @@ CFBundlePackageType FMWK CFBundleShortVersionString - 1.5.1 + 1.5.2 CFBundleVersion - 1.5.1 + 1.5.2