require whitespace in twitter/mastodon pinned posts (#2726)

malik1004x committed Dec 12, 2025 at 16:30 UTC 2e2a75bef5b245495bc652843246a9d169063b03
1 file changed +3 -3
lib/entities/parse_address_from_domain.dart
+3 -3
@@ -293,7 +293,7 @@ class AddressResolver {
293 final addressFromPinnedTweet = extractAddressByType(
294 raw: pinnedTweet,
295 type: CryptoCurrency.fromString(ticker, walletCurrency: wallet.currency),
296 - requireSurroundingWhitespaces: false);
296 + requireSurroundingWhitespaces: true);
297 if (addressFromPinnedTweet != null) {
298 return ParsedAddress.fetchTwitterAddress(
299 address: addressFromPinnedTweet,
@@ -332,7 +332,7 @@ class AddressResolver {
332 await MastodonAPI.lookupUserByUserName(userName: userName, apiHost: hostName);
333
334 if (mastodonUser != null) {
335 - String? addressFromBio = extractAddressByType(raw: mastodonUser.note, type: currency, requireSurroundingWhitespaces: false);
335 + String? addressFromBio = extractAddressByType(raw: mastodonUser.note, type: currency, requireSurroundingWhitespaces: true);
336
337 if (addressFromBio != null && addressFromBio.isNotEmpty) {
338 return ParsedAddress.fetchMastodonAddress(
@@ -348,7 +348,7 @@ class AddressResolver {
348 final userPinnedPostsText = pinnedPosts.map((item) => item.content).join('\n');
349 String? addressFromPinnedPost =
350 extractAddressByType(raw: userPinnedPostsText, type: currency,
351 - requireSurroundingWhitespaces: false);
351 + requireSurroundingWhitespaces: true);
352
353 if (addressFromPinnedPost != null && addressFromPinnedPost.isNotEmpty) {
354 return ParsedAddress.fetchMastodonAddress(