We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c8e50d7 commit 2d2a1ddCopy full SHA for 2d2a1dd
1 file changed
lib/utilities/address_utils.dart
@@ -198,6 +198,13 @@ class AddressUtils {
198
static Map<String, dynamic>? _parseWalletUri(String uri) {
199
final String scheme;
200
final Map<String, dynamic> parsedData = {};
201
+
202
+ final rawScheme = uri.split(":")[0];
203
+ final normalizedScheme = rawScheme.replaceAll("-", "_");
204
+ if (normalizedScheme != rawScheme) {
205
+ uri = normalizedScheme + uri.substring(rawScheme.length);
206
+ }
207
208
if (uri.split(":")[0].contains("_")) {
209
// We need to check if the uri is compatible because RFC 3986
210
// does not allow underscores in the scheme.
0 commit comments