X-Git-Url: https://git.ktnx.net/?a=blobdiff_plain;ds=sidebyside;f=icedeb.js;h=b9e8460c89ce92cf118f867a4d57abe03f75a3ec;hb=b6baa5ee6065621b7cd148b563145a4cc57fe73f;hp=be9c21771b73b1b56f34e6b4676ec5710c5cfb32;hpb=0709382658bc0826abbcd39b250f6238ee095f07;p=icedeb.git diff --git a/icedeb.js b/icedeb.js index be9c217..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,13 @@ 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; @@ -174,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) )