Error in jQuery ( a[href*=#])

Uncaught Error: Syntax error, unrecognized expression: a[href*=#]

Problem is in custom.js.