Skip to content

Commit

Permalink
fix: decode unicode values to account for them coming from a browser URL
Browse files Browse the repository at this point in the history
  • Loading branch information
troch committed Jun 5, 2018
1 parent d561d41 commit 262db43
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/encode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,10 +115,10 @@ export const decode = (value: any, opts: IFinalOptions): boolean | string => {
return false
}
} else if (opts.booleanFormat === 'unicode') {
if (value === '✓') {
if (decodeValue(value) === '✓') {
return true
}
if (value === '✗') {
if (decodeValue(value) === '✗') {
return false
}
} else if (opts.nullFormat === 'string') {
Expand Down

0 comments on commit 262db43

Please # to comment.