X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=blobdiff_plain;f=icedeb.js;h=b9e8460c89ce92cf118f867a4d57abe03f75a3ec;hp=26ea6cf11146fa9eb9adab0d52512e73a7f22a68;hb=b6baa5ee6065621b7cd148b563145a4cc57fe73f;hpb=29ce28d505875ae05212766dc12a55a78a5478b7 diff --git a/icedeb.js b/icedeb.js index 26ea6cf..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; @@ -179,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) )