From 0c7d7cda417fe547d305ab3089e8b827facc1046 Mon Sep 17 00:00:00 2001 From: Anuj Gupta Date: Wed, 29 Mar 2017 14:39:05 +0530 Subject: [PATCH] add missing getFixedNotation function to util.js again --- util.js | 6 ++++++ 1 file changed, 6 insertions(+) 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); +}