how would I escape the quote in the following line of code so that jslint doesn't throw a warning on it. Currently it throws an "Unclosed string" warning on this line.
input = input.replace(/""/g,"\\\"");
I am using the maven yuicompressor plugin for minifying the js & css and also checking the js files with jslint. Here's my configuration for the plugin.
.....
<plugin>
<groupId>net.alchim31.maven</groupId>
<artifactId>yuicompressor-maven-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>compress</goal>
<goal>jslint</goal>
</goals>
</execution>
</executions>
<configuration>
<nosuffix>true</nosuffix>
<excludes>
<exclude>**/*.min.js</exclude>
<exclude>**/*.min.css</exclude>
</excludes>
</configuration>
</plugin>
.......
I don't know if this is technically an answer but I was using version 1.3.0 when I got this error. Upgrading to version 1.3.4 fixed the problem and no longer shows the jslint error on that line.