Merge pull request #546 from ericszimmermann/ez_apply_flserial_patch
flserial import points to MeshEnvy/PR1
This commit is contained in:
2 files changed
+3
-6
No files matched your search
@@ -17,7 +17,7 @@ class MessageUrlImageHelper {
|
|||||||
LinkedHashMap<String, Future<String?>>();
|
LinkedHashMap<String, Future<String?>>();
|
||||||
|
|
||||||
static final RegExp _pyxPattern = RegExp(
|
static final RegExp _pyxPattern = RegExp(
|
||||||
r'''https?://pyx\.li/\?i=([^\s<>'"`]+)''',
|
r'''https?://pyx\.li/\?i=([A-Za-z0-9_-]+)''',
|
||||||
caseSensitive: false,
|
caseSensitive: false,
|
||||||
);
|
);
|
||||||
|
|
||||||
@@ -57,10 +57,7 @@ class MessageUrlImageHelper {
|
|||||||
|
|
||||||
final pyxMatch = _pyxPattern.firstMatch(trimmed);
|
final pyxMatch = _pyxPattern.firstMatch(trimmed);
|
||||||
if (pyxMatch != null) {
|
if (pyxMatch != null) {
|
||||||
return _extractFromUrl(
|
return 'https://pyx.li/i/${pyxMatch.group(1)!}.jpg';
|
||||||
_trimBoundary(pyxMatch.group(0)!),
|
|
||||||
RegExp(r'''<img[^>]+src=["']([^"']+)["']''', caseSensitive: false),
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
final ipfsUrlMatch = _ipfsUrlPattern.firstMatch(trimmed);
|
final ipfsUrlMatch = _ipfsUrlPattern.firstMatch(trimmed);
|
||||||
|
|||||||
+1
-1
@@ -42,7 +42,7 @@ dependencies:
|
|||||||
flserial:
|
flserial:
|
||||||
git:
|
git:
|
||||||
url: https://github.com/MeshEnvy/flserial.git
|
url: https://github.com/MeshEnvy/flserial.git
|
||||||
ref: 48216310061efc8d5d217cc18014fc2cb501646e
|
ref: e1864de9b65cda9656dba804329bdd2890dd5a92
|
||||||
provider: ^6.1.5+1
|
provider: ^6.1.5+1
|
||||||
shared_preferences: ^2.2.2
|
shared_preferences: ^2.2.2
|
||||||
uuid: ^4.3.3
|
uuid: ^4.3.3
|
||||||
|
|||||||
Reference in new issue
Block a user