From 49fd4d8708685e97f6ee1970c89e3dddbe4160ae Mon Sep 17 00:00:00 2001 From: Cedric Beust Date: Tue, 12 Jul 2016 03:21:30 -0800 Subject: [PATCH] Fix profile regexp. --- src/main/kotlin/com/beust/kobalt/app/ParsedBuildFile.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/kotlin/com/beust/kobalt/app/ParsedBuildFile.kt b/src/main/kotlin/com/beust/kobalt/app/ParsedBuildFile.kt index 18ee36cb..d541bd9b 100644 --- a/src/main/kotlin/com/beust/kobalt/app/ParsedBuildFile.kt +++ b/src/main/kotlin/com/beust/kobalt/app/ParsedBuildFile.kt @@ -83,7 +83,7 @@ class ParsedBuildFile(val buildFile: BuildFile, val context: KobaltContext, val */ fun correctProfileLine(line: String) : String { (context.profiles as List).forEach { - if (line.matches(Regex("[ \\t]*val[ \\t]+$it[ \\t]+=.*"))) { + if (line.matches(Regex("[ \\t]*val[ \\t]+$it[ \\t]*=.*"))) { with("val $it = true") { log(2, "Activating profile $it in build file") activeProfiles.add(it)