diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/nodejs/main.js | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/nodejs/main.js b/src/nodejs/main.js index ce4518d..a7ff07b 100644 --- a/src/nodejs/main.js +++ b/src/nodejs/main.js @@ -98,7 +98,7 @@ var urlToXpathObj = function urlToXpathObj(url){ var parseBboxList = function(string){ - result = /(.+)(:?,(.+)){3}/.exec(string): + result = /(.+)(:?,(.+)){3}/.exec(string); if(result.length != 4){ throw "error"; @@ -107,10 +107,11 @@ var urlToXpathObj = function urlToXpathObj(url){ result.shift(); return { - 'left' : result[0]; - 'bottom' : result[1]; - 'right' : result[2]; - 'top' : result[3]; + 'left' : result[0], + 'bottom' : result[1], + 'right' : result[2], + 'top' : result[3] + }; } var xp = {}; |