]> git.ktnx.net Git - icedeb.git/blobdiff - icedeb.js
allos leading hash sign to bug report numbers
[icedeb.git] / icedeb.js
index 60dfa66cb086252c9abb6bd9065bb706d0b3eb44..e6525400eb2eb65a9d31e8e522166213726719b5 100644 (file)
--- a/icedeb.js
+++ b/icedeb.js
@@ -146,8 +146,16 @@ function link_clicked(e) {
       url = 'https://buildd.debian.org/' + clip;
       break;
     case 'security':
+      clip = clip.replace(' ', '-');
+      clip = clip.toUpperCase();
       url = 'https://security-tracker.debian.org/tracker/' + clip;
       break;
+    case 'piuparts':
+      url = `https://piuparts.debian.org/sid/source/${clip.substring(0,1)}/${clip}.html`;
+      break;
+    case 'r-b':
+      url = 'https://tests.reproducible-builds.org/debian/rb-pkg/' + clip + '.html';
+      break;
   }
 
   open_link(url, e.button == 1)
@@ -171,7 +179,7 @@ function check_likely_inputs(q) {
         el.classList.remove('likely');
     });
 
-  if ( /^\d+$/.test(q) || /^CVE-/.test(q) )
+  if ( /^#?\d+$/.test(q) || /^CVE-/.test(q) )
     cnt.add('like-b');
 
   if ( /^[a-z0-9][a-z0-9\-+.]+$/.test(q) )