From: Damyan Ivanov Date: Wed, 22 Aug 2018 12:28:44 +0000 (+0000) Subject: allos leading hash sign to bug report numbers X-Git-Tag: 2.1~2 X-Git-Url: https://git.ktnx.net/?p=icedeb.git;a=commitdiff_plain;h=3af5ba27499882e8b446135dcc3e8170168149d6 allos leading hash sign to bug report numbers --- diff --git a/icedeb.js b/icedeb.js index 26ea6cf..e652540 100644 --- a/icedeb.js +++ b/icedeb.js @@ -179,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) )