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) {