replace % in generated names with ~

to make generated path elements conform to URI spec (% is binary escape)
This commit is contained in:
Roland 2011-12-29 16:26:14 +01:00
parent 5e0ed18056
commit 0f9f23b4cd

View file

@ -26,7 +26,7 @@ object Helpers {
def compare(a: AnyRef, b: AnyRef): Int = compareIdentityHash(a, b)
}
final val base64chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+%"
final val base64chars = "abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+~"
@tailrec
def base64(l: Long, sb: StringBuilder = new StringBuilder("$")): String = {