1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-04-26 00:17:11 -07:00

Fix profile regexp.

This commit is contained in:
Cedric Beust 2016-07-12 03:21:30 -08:00
parent bf1863db32
commit 49fd4d8708

View file

@ -83,7 +83,7 @@ class ParsedBuildFile(val buildFile: BuildFile, val context: KobaltContext, val
*/
fun correctProfileLine(line: String) : String {
(context.profiles as List<String>).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)