mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-04-26 08:27:12 -07:00
Fix profile regexp.
This commit is contained in:
parent
bf1863db32
commit
49fd4d8708
1 changed files with 1 additions and 1 deletions
|
@ -83,7 +83,7 @@ class ParsedBuildFile(val buildFile: BuildFile, val context: KobaltContext, val
|
||||||
*/
|
*/
|
||||||
fun correctProfileLine(line: String) : String {
|
fun correctProfileLine(line: String) : String {
|
||||||
(context.profiles as List<String>).forEach {
|
(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") {
|
with("val $it = true") {
|
||||||
log(2, "Activating profile $it in build file")
|
log(2, "Activating profile $it in build file")
|
||||||
activeProfiles.add(it)
|
activeProfiles.add(it)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue