diff --git a/lib/tool/api.dart b/lib/tool/api.dart index ed97f16..4533edd 100644 --- a/lib/tool/api.dart +++ b/lib/tool/api.dart @@ -6,7 +6,7 @@ Future> getImages(String url) async { Iterable matches = RegExp( r'(https?://)?[a-zA-Z\d\u4e00-\u9fa5-._/@%]+?\.((jpe?|pn)g|webp)', caseSensitive: false) - .allMatches(response.body); + .allMatches(response.body.replaceAll(RegExp(r'\\/'), '/')); List images = matches.map((m) => m.group(0)!).toSet().toList(); Uri uri = Uri.parse(url); for (int i = 0; i < images.length; i++) { diff --git a/pubspec.yaml b/pubspec.yaml index 19e49bc..7a87351 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -16,7 +16,7 @@ publish_to: 'none' # Remove this line if you wish to publish to pub.dev # https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html # In Windows, build-name is used as the major, minor, and patch parts # of the product and file versions while build-number is used as the build suffix. -version: 1.3.0+3 +version: 1.4.0+4 environment: sdk: '>=3.0.0-122.0.dev <4.0.0'