diff --git a/src/index.ts b/src/index.ts index 2b6349a..9c82570 100644 --- a/src/index.ts +++ b/src/index.ts @@ -564,11 +564,11 @@ async function updateBuildGradle( gradleFile = updateDeprecatedPropertySyntax(gradleFile); gradleFile = updateKotlinOptions(gradleFile); gradleFile = gradleFile.replace( - /^\s*ext\.kotlin_version = project\.hasProperty\("kotlin_version"\) \? rootProject\.ext\.kotlin_version : '\d+\.\d+\.\d+'\n?/m, + /^\s*ext\.kotlin_version = project\.hasProperty\(["']kotlin_version["']\) \? rootProject\.ext\.kotlin_version : '\d+\.\d+\.\d+'\n?/m, '', ); gradleFile = gradleFile.replace( - /^\s*ext \{\n\s*kotlin_version = project\.hasProperty\("kotlin_version"\) \? rootProject\.ext\.kotlin_version : '[\d.]+'\n\s*\}\n?/gm, + /^\s*ext \{\n\s*kotlin_version = project\.hasProperty\(["']kotlin_version["']\) \? rootProject\.ext\.kotlin_version : '[\d.]+'\n\s*\}\n?/gm, '', ); gradleFile = gradleFile.replace(