vendor/assets/javascripts/angular-sanitize.js in angularjs-rails-1.5.5 vs vendor/assets/javascripts/angular-sanitize.js in angularjs-rails-1.5.6

- old
+ new

@@ -1,7 +1,7 @@ /** - * @license AngularJS v1.5.5 + * @license AngularJS v1.5.6 * (c) 2010-2016 Google, Inc. http://angularjs.org * License: MIT */ (function(window, angular) {'use strict'; @@ -185,11 +185,11 @@ * overflow: hidden !important; * } * </code></pre> * </div> * - * @param {boolean=} regexp New regexp to whitelist urls with. + * @param {boolean=} flag Enable or disable SVG support in the sanitizer. * @returns {boolean|ng.$sanitizeProvider} Returns the currently configured value if called * without an argument or self for chaining otherwise. */ this.enableSvg = function(enableSvg) { if (angular.isDefined(enableSvg)) { @@ -492,10 +492,10 @@ if (node.nodeType === window.Node.ELEMENT_NODE) { var attrs = node.attributes; for (var i = 0, l = attrs.length; i < l; i++) { var attrNode = attrs[i]; var attrName = attrNode.name.toLowerCase(); - if (attrName === 'xmlns:ns1' || attrName.indexOf('ns1:') === 0) { + if (attrName === 'xmlns:ns1' || attrName.lastIndexOf('ns1:', 0) === 0) { node.removeAttributeNode(attrNode); i--; l--; } }