1
0
mirror of https://github.com/dutchcoders/transfer.sh.git synced 2020-11-18 19:53:40 -08:00

Merge pull request #21 from johnko/patch-1

SYMBOLS was missing the characters T and W
This commit is contained in:
Remco Verhoef 2015-02-25 11:10:25 +01:00
commit b66235ea86

View File

@ -1,7 +1,8 @@
/* /*
https://github.com/fs111/kurz.go/blob/master/src/codec.go https://github.com/fs111/kurz.go/blob/master/src/codec.go
Copyright (c) 2011 André Kelpe Originally written and Copyright (c) 2011 André Kelpe
Modifications Copyright (c) 2015 John Ko
Permission is hereby granted, free of charge, to any person obtaining a copy of Permission is hereby granted, free of charge, to any person obtaining a copy of
this software and associated documentation files (the "Software"), to deal in this software and associated documentation files (the "Software"), to deal in
@ -30,7 +31,7 @@ import (
const ( const (
// characters used for short-urls // characters used for short-urls
SYMBOLS = "0123456789abcdefghijklmnopqrsuvwxyzABCDEFGHIJKLMNOPQRSTUVXYZ" SYMBOLS = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"
// someone set us up the bomb !! // someone set us up the bomb !!
BASE = int64(len(SYMBOLS)) BASE = int64(len(SYMBOLS))