title: jQuery crash because of bundle minification in release mode
body: <p>I have jquery bundle:</p>
  
  <pre><code>bundles.Add(new ScriptBundle("~/bundle/jquery").Include(
                  ScriptsPath("jquery-2.0.3.js"),
                  ScriptsPath("jquery.validate.js"),
                  ScriptsPath("jquery.validate.unobtrusive.js"),
                  ScriptsPath("jquery-ui-1.10.3.js"),
                  ScriptsPath("jquery.validate.unubtrusive.config.js"),
                  ScriptsPath("jquery.easing.1.3.js "),
                  ScriptsPath("jquery.unobtrusive-ajax.min.js"),
                  ScriptsPath("jquery.validate.custom.attributes.js") ...
  </code></pre>
  
  <p>On user registration page I have both login and register forms so form inputs have <code>Register.</code> and <code>Login.</code> prefixes in their names. Basically it looks like:</p>
  
  <pre><code>&lt;input type="text" ... id="Register_Email" name="Register.Email" /&gt;
  &lt;input type="password" ... id="Register_Password" name="Register.Password" /&gt;
  </code></pre>
  
  <p>When I publish my application in release mode i get this error in bundle file:</p>
  
  <p><img src="https://i.stack.imgur.com/pFi6D.png" alt="uncaught jquery error in bundle file"> </p>
  
  <p>This is obviously because of the dot in input's name. How can I save the dot and fix this issue? I've already tried to <code>BundleTable.EnableOptimizations = false;</code> but it didn't help and I do not consider this as appropriate solution because it annihilates the purpose of the bundle. Also note that issue takes place only in <strong>Release</strong> mode. </p>
  
  <p><strong>EDITS:</strong>
  Bundle file list contains one script file of my own, it contains client side validation logic for my <code>ForbidHtmlAttribude</code>:</p>
  
  <p><strong>jquery.validate.custom.attributes.js</strong></p>
  
  <pre><code>jQuery.validator.unobtrusive.adapters.add(
      'forbidhtmlattribute',
      ['htmlregexpattern'],
      function (options) {
          options.rules['forbidhtmlattribute'] = options.params;
          options.messages['forbidhtmlattribute'] = options.message;
      }
  );
  
  jQuery.validator.addMethod('forbidhtmlattribute', function (value, element, params) {
      if (value === null || value === undefined) return true;
  
      var regex = params['htmlregexpattern'];
      return !value.match(regex);
  }, '');
  </code></pre>