+function check_likely_inputs(q) {
+ let cnt = document.getElementById('button-list-container').classList;
+
+ cnt.remove('like-b', 'like-p', 'like-m', 'like-i');
+ document.querySelectorAll('.likely')
+ .forEach((el) => {
+ el.classList.remove('likely');
+ });
+
+ if ( /^\d+$/.test(q) || /^CVE-/.test(q) )
+ cnt.add('like-b');
+
+ if ( /^[a-z0-9][a-z0-9\-+.]+$/.test(q) )
+ cnt.add('like-p');
+
+ if ( /.@[a-z0-9-]/i.test(q) )
+ cnt.add('like-m');
+
+ if ( /^<.+@.+>$/.test(q) )
+ cnt.add('like-i');
+
+ document.querySelectorAll('.like-b .hint.b, .like-p .hint.p, .like-m .hint.m, .like-i .hint.i')
+ .forEach((el) => {
+ el.parentElement.parentElement.classList.add('likely');
+ } );
+}
+