From efe84be65de8dff743b5233138e4159c7fa98715 Mon Sep 17 00:00:00 2001 From: Vishal Kumar Date: Sun, 24 Nov 2024 01:51:21 -0800 Subject: [PATCH] Fix unable to read namespace from gradle file when = not present. --- .../kotlin/dev/randos/resourcemanager/manager/ModuleManager.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/resourcemanager/src/main/kotlin/dev/randos/resourcemanager/manager/ModuleManager.kt b/resourcemanager/src/main/kotlin/dev/randos/resourcemanager/manager/ModuleManager.kt index fecf781..d52ccb7 100644 --- a/resourcemanager/src/main/kotlin/dev/randos/resourcemanager/manager/ModuleManager.kt +++ b/resourcemanager/src/main/kotlin/dev/randos/resourcemanager/manager/ModuleManager.kt @@ -110,7 +110,7 @@ internal class ModuleManager(private val moduleFile: File) { // Define regex pattern for the style of namespace val namespacePattern = - Regex("\\s*namespace\\s*=\\s*[\"'](.+)[\"']") // Matches: namespace = "com.example.app" + Regex("\\s*namespace\\s*=?\\s*[\"'](.+)[\"']") // Matches: namespace = "com.example.app" var isBlockComment = false val lines = gradleFile.readLines().filter { it.isNotBlank() }