diff --git a/util.js b/util.js index c45a055..08b75f3 100644 --- a/util.js +++ b/util.js @@ -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); +}