String literal is not properly closed
I am using IBM Worklight 6.0. I downloaded jQuery mobile 1.4 and imported jquery.mobile-1.4.0.js and jquery.mobile-1.4.0.css into my project. But line 2657 of the js shows the following errors in Eclipse:
String literal is not properly closed by a matching literal
and
Syntax errors on tokens, delete these tokens
The line 2657 in question is this one:
return ( hasHash ? "#" : "" ) + hash.replace( /([!"#$%&'()*+,./:;<=>?@[\]^`{|}~])/g, "\\$1" );
Is this a bug in the jQuery mobile 1.4 code?