Minor cleanup
This commit is contained in:
parent
41912076b0
commit
ac278b6fef
3 changed files with 3 additions and 4 deletions
|
@ -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"
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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++
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue