Skip to content

Commit

Permalink
fix(base64url): 修正示例
Browse files Browse the repository at this point in the history
  • Loading branch information
fjc0k committed Jun 6, 2019
1 parent 6631c47 commit de38d63
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/base64.ts
Original file line number Diff line number Diff line change
Expand Up @@ -157,9 +157,9 @@ export function base64Decode(input: string): string {
* @see http://www.ietf.org/rfc/rfc4648.txt
* @example
* ```ts
* base64UrlEncode('vtils') // => dnRpbHM=
* base64UrlEncode('vtils') // => dnRpbHM
* base64UrlEncode('中国') // => 5Lit5Zu9
* base64UrlEncode('👨‍💻') // => 8J-RqOKAjfCfkrs=
* base64UrlEncode('👨‍💻') // => 8J-RqOKAjfCfkrs
* ```
*/
export function base64UrlEncode(input: string): string {
Expand All @@ -177,9 +177,9 @@ export function base64UrlEncode(input: string): string {
* @see http://www.ietf.org/rfc/rfc4648.txt
* @example
* ```ts
* base64Decode('dnRpbHM=') // => vtils
* base64Decode('5Lit5Zu9') // => 中国
* base64Decode('8J-RqOKAjfCfkrs=') // => 👨‍💻
* base64UrlDecode('dnRpbHM') // => vtils
* base64UrlDecode('5Lit5Zu9') // => 中国
* base64UrlDecode('8J-RqOKAjfCfkrs') // => 👨‍💻
* ```
*/
export function base64UrlDecode(input: string): string {
Expand Down

0 comments on commit de38d63

Please sign in to comment.