This commit is contained in:
Hiddify
2023-09-14 15:10:30 +02:00
82 changed files with 1547 additions and 1049 deletions

View File

@@ -45,7 +45,7 @@ class Profile with _$Profile {
if (title.isEmpty) {
final contentDisposition = headers['content-disposition']?.single;
if (contentDisposition != null) {
final RegExp regExp = RegExp(r'filename="([^"]*)"');
final RegExp regExp = RegExp('filename="([^"]*)"');
final match = regExp.firstMatch(contentDisposition);
if (match != null && match.groupCount >= 1) {
title = match.group(1) ?? '';