Merge pull request #3672 from adamwangxx/master

add missing break keyword while converting NSData to SDImageFormat
This commit is contained in:
DreamPiggy 2024-02-13 11:01:20 +08:00 committed by GitHub
commit f2936fc4b2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 0 deletions

View File

@ -74,12 +74,14 @@
return SDImageFormatPDF;
}
}
break;
}
case 0x3C: {
// Check end with SVG tag
if ([data rangeOfData:[kSVGTagEnd dataUsingEncoding:NSUTF8StringEncoding] options:NSDataSearchBackwards range: NSMakeRange(data.length - MIN(100, data.length), MIN(100, data.length))].location != NSNotFound) {
return SDImageFormatSVG;
}
break;
}
}
return SDImageFormatUndefined;