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"
|
description = "A simple defensive library to encode/decode URL components"
|
||||||
group = "net.thauvin.erik"
|
group = "net.thauvin.erik"
|
||||||
version = "1.3.0"
|
version = "1.3.1-SNAPSHOT"
|
||||||
|
|
||||||
|
|
||||||
val mavenName = "UrlEncoder"
|
val mavenName = "UrlEncoder"
|
||||||
|
|
|
@ -8,7 +8,7 @@
|
||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>net.thauvin.erik</groupId>
|
<groupId>net.thauvin.erik</groupId>
|
||||||
<artifactId>urlencoder</artifactId>
|
<artifactId>urlencoder</artifactId>
|
||||||
<version>1.3.0</version>
|
<version>1.3.1-SNAPSHOT</version>
|
||||||
<name>UrlEncoder for Kotlin</name>
|
<name>UrlEncoder for Kotlin</name>
|
||||||
<description>A simple defensive library to encode/decode URL components</description>
|
<description>A simple defensive library to encode/decode URL components</description>
|
||||||
<url>https://github.com/ethauvin/urlencoder</url>
|
<url>https://github.com/ethauvin/urlencoder</url>
|
||||||
|
|
|
@ -129,12 +129,11 @@ object UrlEncoder {
|
||||||
if (plusToSpace && ch == '+') {
|
if (plusToSpace && ch == '+') {
|
||||||
if (!started) {
|
if (!started) {
|
||||||
out.append(source, 0, i)
|
out.append(source, 0, i)
|
||||||
|
started = true
|
||||||
}
|
}
|
||||||
out.append(" ")
|
out.append(" ")
|
||||||
started = true
|
|
||||||
} else if (started) {
|
} else if (started) {
|
||||||
out.append(ch)
|
out.append(ch)
|
||||||
started = true
|
|
||||||
}
|
}
|
||||||
i++
|
i++
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue