Skip to content

Commit 7f24fe7

Browse files
authored
Merge pull request #253 from spalladino/palla/allow-hex-prefix-in-json-web-encoder
Allow for hex prefix in comparison in json-encoder-web
2 parents 689350e + a307ea5 commit 7f24fe7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

packages/json-encoder-web/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ document.getElementById('verify-compiled').oninput = function () {
6464
let expected = (<HTMLInputElement>document.getElementById('verify-compiled')).value;
6565

6666
let text;
67-
if (compiled === expected) {
67+
if (compiled === expected || `0x${compiled}` === expected) {
6868
text = '✓ matches'
6969
} else {
7070
text = '✗ does not match'

0 commit comments

Comments
 (0)