From 59b616231d3590d01a0d4521473bad6dcf79fac5 Mon Sep 17 00:00:00 2001 From: Tobias Zwick Date: Mon, 21 Mar 2022 20:03:31 +0100 Subject: [PATCH] correct readme --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 997675e..2b18c0a 100644 --- a/README.md +++ b/README.md @@ -39,7 +39,7 @@ task downloadPresets { def slurper = new JsonSlurper() slurper.parse(contentsUrl, "UTF-8").each { if(it.type == "file") { - def filename = it.name.substring(0, it.name.lastIndexOf(".")) + def filename = it.name.substring(0, it.name.indexOf(".")) def javaLanguageTag = Locale.forLanguageTag(filename.replace('@','-')).toLanguageTag() def translationsUrl = new URL(it.download_url) new File("$targetDir/${javaLanguageTag}.json").withOutputStream { it << translationsUrl.openStream() }