]> git.ktnx.net Git - icedeb.git/commitdiff
allos leading hash sign to bug report numbers
authorDamyan Ivanov <dmn@debian.org>
Wed, 22 Aug 2018 12:28:44 +0000 (12:28 +0000)
committerDamyan Ivanov <dmn@debian.org>
Wed, 22 Aug 2018 12:28:44 +0000 (12:28 +0000)
icedeb.js

index 26ea6cf11146fa9eb9adab0d52512e73a7f22a68..e6525400eb2eb65a9d31e8e522166213726719b5 100644 (file)
--- a/icedeb.js
+++ b/icedeb.js
@@ -179,7 +179,7 @@ function check_likely_inputs(q) {
         el.classList.remove('likely');
     });
 
         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) )
     cnt.add('like-b');
 
   if ( /^[a-z0-9][a-z0-9\-+.]+$/.test(q) )