Fix pubspec generation on windows (#1351)

This commit is contained in:
Konstantin Ullrich 2024-03-26 11:08:39 -05:00 committed by GitHub
parent 6ae0f37b9c
commit b9e803f3bd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1037,7 +1037,7 @@ Future<void> generatePubspec(
final inputFile = File(pubspecOutputPath);
final inputText = await inputFile.readAsString();
final inputLines = inputText.split('\n');
final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase() == 'dependencies:');
final dependenciesIndex = inputLines.indexWhere((line) => line.toLowerCase().contains('dependencies:'));
var output = cwCore;
if (hasMonero) {