[auth] Fix export for imports with invalid algoname
This commit is contained in:
@@ -28,7 +28,8 @@ class ViewQrPage extends StatelessWidget {
|
||||
child: Column(
|
||||
children: [
|
||||
QrImageView(
|
||||
data: code!.rawData,
|
||||
data: code!.rawData
|
||||
.replaceAll('algorithm=Algorithm.', 'algorithm='),
|
||||
eyeStyle: QrEyeStyle(
|
||||
eyeShape: QrEyeShape.square,
|
||||
color: Theme.of(context).colorScheme.onSurface,
|
||||
|
||||
@@ -189,7 +189,8 @@ Future<String> _getAuthDataForExport() async {
|
||||
String data = "";
|
||||
for (final code in allCodes) {
|
||||
if (code.hasError) continue;
|
||||
data += "${code.rawData.replaceAll(',', '%2C')}\n";
|
||||
data +=
|
||||
"${code.rawData.replaceAll('algorithm=Algorithm.', 'algorithm=').replaceAll(',', '%2C')}\n";
|
||||
}
|
||||
|
||||
return data;
|
||||
|
||||
Reference in New Issue
Block a user