Skip to content

Commit

Permalink
fix: template github-hash regex not escaping separator
Browse files Browse the repository at this point in the history
  • Loading branch information
Boy0000 committed May 31, 2024
1 parent e2c2090 commit 1e8ce81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/kotlin/com/mineinabyss/packy/PackyDownloader.kt
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ object PackyDownloader {
fun updateGithubTemplate(vararg templates: PackyTemplate): Boolean {
val template = templates.first()
val templateIds = templates.joinToString("|") { it.id }
val regex = "$templateIds=.*".toRegex()
val regex = "$templateIds=.*".replace("|", "\\|").toRegex()
val hashFile = packy.plugin.dataFolder.toPath() / "templates" / "localHashes.txt"
hashFile.createParentDirectories()
hashFile.toFile().createNewFile()
Expand Down

0 comments on commit 1e8ce81

Please sign in to comment.