ASP.NET MVC 4 JS MVC Error

I use google-code-prettify in an ASP.NET MVC 4 project. It works in debug mode, but the minimization / linking step is not performed in the release.

I get this error:

"Minification failed. Return unminified contents. (104,399-436): JS5017 runtime error: regular expression syntax error: / ^ (?: \ \ | [\ S \ S]) [^ \ \ # = A - [^ 'h {~] / "

File he complains about: lang-wiki.js

This is the latest version of google, and it runs in debugging, so I can only assume that the union does not parse the regular expression correctly.

Besides deleting this file, what else can I do? Ideally, I would like to disable any error by checking for connection step attempts.

I use the following versions:

  • Microsoft.AspNet.Mvc.4.0.20710.0
  • Microsoft.AspNet.Web.Optimization.1.1.3

I tried to reduce these files using the YUI Compressor , and it works in a way that seems to support the wrong parsing theory.

+3
source share
1 answer

Some of the minimization tools, such as closing google or YUI, have different behaviors when considering half-colonies, and this causes some problems when the script is not very well formatted, and if you use grease or ajax-minifer, which are tools from Microsoft, you don’t see these problems.

Ajax-Minifer , .

0

All Articles