From b9e803f3bd603a996e526cfd27db5d3c00f7b48f Mon Sep 17 00:00:00 2001 From: Konstantin Ullrich Date: Tue, 26 Mar 2024 11:08:39 -0500 Subject: [PATCH] Fix pubspec generation on windows (#1351) --- tool/configure.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tool/configure.dart b/tool/configure.dart index 962731d06..99d1fe8ee 100644 --- a/tool/configure.dart +++ b/tool/configure.dart @@ -1037,7 +1037,7 @@ Future 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) {