In gb_jquery_detct.nasl on line 101 the following regex:
pattern = 'src=["\']([^ ]*)(jquery[-.]?([0-9.]+)?(\\.(min|slim|slim\\.min)?)\\.js)';
Will not match anything that does not included min/slim and does not terminate with “…js” because of a missing ? after the next-to-last closing parenthesis making the captured dot mandatory.
Ex, this will not match:
It should probably be modified as such (addition of a question mark at the end):
pattern = 'src=["\']([^ ]*)(jquery[-.]?([0-9.]+)?(\\.(min|slim|slim\\.min)?)?\\.js)';
This makes the captured “.” optional, especially if you don’t have min/slim/etc in the target URL:
Expanded regex visible here: