Minor cleanup

This commit is contained in:
Erik C. Thauvin 2023-01-06 19:47:10 -08:00
parent 41912076b0
commit ac278b6fef
3 changed files with 3 additions and 4 deletions

View file

@ -23,7 +23,7 @@ plugins {
description = "A simple defensive library to encode/decode URL components"
group = "net.thauvin.erik"
version = "1.3.0"
version = "1.3.1-SNAPSHOT"
val mavenName = "UrlEncoder"

View file

@ -8,7 +8,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>net.thauvin.erik</groupId>
<artifactId>urlencoder</artifactId>
<version>1.3.0</version>
<version>1.3.1-SNAPSHOT</version>
<name>UrlEncoder for Kotlin</name>
<description>A simple defensive library to encode/decode URL components</description>
<url>https://github.com/ethauvin/urlencoder</url>

View file

@ -129,12 +129,11 @@ object UrlEncoder {
if (plusToSpace && ch == '+') {
if (!started) {
out.append(source, 0, i)
started = true
}
out.append(" ")
started = true
} else if (started) {
out.append(ch)
started = true
}
i++
}