aboutsummaryrefslogtreecommitdiffstats
path: root/lib/util.js
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util.js')
-rw-r--r--lib/util.js7
1 files changed, 6 insertions, 1 deletions
diff --git a/lib/util.js b/lib/util.js
index 18a3c1b..0b1a79e 100644
--- a/lib/util.js
+++ b/lib/util.js
@@ -61,7 +61,12 @@ var getParamsFromURL = exports.getParamsFromURL = function getParamsFromURL (url
};
/**
- * FIXME this should go to bzpage.js ... no reason to keep it here
+ * Get a bug no from URL ... fails with aliases
+ * It should theoretically belong to bzpage.js, but we don't have
+ * unit tests there yet, so keeping here.
+ *
+ * @param url String with URL to be analyzed
+ * @return String with the bug ID (hopefully number, but not for aliases)
*/
exports.getBugNo = function getBugNo(url) {
var params = getParamsFromURL(url);