Skip to content

Commit

Permalink
make address check case independent
Browse files Browse the repository at this point in the history
  • Loading branch information
frozeman committed Sep 10, 2015
1 parent d70df36 commit 072b796
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/utils/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ var toTwosComplement = function (number) {
* @return {Boolean}
*/
var isStrictAddress = function (address) {
return /^0x[0-9a-f]{40}$/.test(address);
return /^0x[0-9a-f]{40}$/i.test(address);
};

/**
Expand All @@ -391,7 +391,7 @@ var isStrictAddress = function (address) {
* @return {Boolean}
*/
var isAddress = function (address) {
return /^(0x)?[0-9a-f]{40}$/.test(address);
return /^(0x)?[0-9a-f]{40}$/i.test(address);
};

/**
Expand Down

0 comments on commit 072b796

Please sign in to comment.