X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=blobdiff_plain;f=icedeb.js;h=b9e8460c89ce92cf118f867a4d57abe03f75a3ec;hp=60dfa66cb086252c9abb6bd9065bb706d0b3eb44;hb=a4db86e8cb6594135a08082218f31da47a72bb79;hpb=dbce47c616b354e7f0515284c4e41d6f7850b283 diff --git a/icedeb.js b/icedeb.js index 60dfa66..b9e8460 100644 --- a/icedeb.js +++ b/icedeb.js @@ -30,6 +30,7 @@ function trim(word) { word = word.replace(/^[^a-zA-Z0-9]+/, ''); word = word.replace(/[^a-zA-Z0-9]+$/, ''); word = word.replace(/^Bug#/i, ''); + word = word.replace(/^#/, ''); } while ( oldword != word ); return word; @@ -146,8 +147,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 +180,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) )