Change proxies lifecycle

This commit is contained in:
problematicconsumer
2023-09-10 20:27:07 +03:30
parent dedccdd772
commit cd37f5124a
6 changed files with 37 additions and 16 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) ?? '';