Skip to content

Commit

Permalink
add missing getFixedNotation function to util.js again
Browse files Browse the repository at this point in the history
  • Loading branch information
wtf committed Mar 29, 2017
1 parent a72feb2 commit 0c7d7cd
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions util.js
Original file line number Diff line number Diff line change
Expand Up @@ -213,3 +213,9 @@ var jsonify = function(obj){
}, 4);
return json;
};

function getFixedNotation(address, notation) {
var newString = notation.split("$").join("$$").replace("1", "$2").replace("A", "$1");
var regex = /([A-Z]+)(\d+)/;
return address.replace(regex, newString);
}

0 comments on commit 0c7d7cd

Please sign in to comment.