@angular/core 14.2.0-rc.0 → 14.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/fesm2020/core.mjs CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @license Angular v14.2.0-rc.0
2
+ * @license Angular v14.2.0
3
3
  * (c) 2010-2022 Google LLC. https://angular.io/
4
4
  * License: MIT
5
5
  */
@@ -5791,14 +5791,10 @@ function isDOMParserAvailable() {
5791
5791
  *
5792
5792
  * This regular expression was taken from the Closure sanitization library.
5793
5793
  */
5794
- const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
5795
- /* A pattern that matches safe srcset values */
5796
- const SAFE_SRCSET_PATTERN = /^(?:(?:https?|file):|[^&:/?#]*(?:[/?#]|$))/gi;
5797
- /** A pattern that matches safe data URLs. Only matches image, video and audio types. */
5798
- const DATA_URL_PATTERN = /^data:(?:image\/(?:bmp|gif|jpeg|jpg|png|tiff|webp)|video\/(?:mpeg|mp4|ogg|webm)|audio\/(?:mp3|oga|ogg|opus));base64,[a-z0-9+\/]+=*$/i;
5794
+ const SAFE_URL_PATTERN = /^(?:(?:https?|mailto|data|ftp|tel|file|sms):|[^&:/?#]*(?:[/?#]|$))/gi;
5799
5795
  function _sanitizeUrl(url) {
5800
5796
  url = String(url);
5801
- if (url.match(SAFE_URL_PATTERN) || url.match(DATA_URL_PATTERN))
5797
+ if (url.match(SAFE_URL_PATTERN))
5802
5798
  return url;
5803
5799
  if (typeof ngDevMode === 'undefined' || ngDevMode) {
5804
5800
  console.warn(`WARNING: sanitizing unsafe URL value ${url} (see https://g.co/ng/security#xss)`);
@@ -7261,7 +7257,7 @@ class Version {
7261
7257
  /**
7262
7258
  * @publicApi
7263
7259
  */
7264
- const VERSION = new Version('14.2.0-rc.0');
7260
+ const VERSION = new Version('14.2.0');
7265
7261
 
7266
7262
  /**
7267
7263
  * @license