diff -r 7b1b88e27a20 -r 48c4eec2b7e6 wp/wp-includes/js/dist/escape-html.js --- a/wp/wp-includes/js/dist/escape-html.js Thu Sep 29 08:06:27 2022 +0200 +++ b/wp/wp-includes/js/dist/escape-html.js Fri Sep 05 18:40:08 2025 +0200 @@ -1,36 +1,36 @@ -/******/ (function() { // webpackBootstrap +/******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ -/******/ !function() { +/******/ (() => { /******/ // define getter functions for harmony exports -/******/ __webpack_require__.d = function(exports, definition) { +/******/ __webpack_require__.d = (exports, definition) => { /******/ for(var key in definition) { /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) { /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] }); /******/ } /******/ } /******/ }; -/******/ }(); +/******/ })(); /******/ /******/ /* webpack/runtime/hasOwnProperty shorthand */ -/******/ !function() { -/******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); } -/******/ }(); +/******/ (() => { +/******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) +/******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ -/******/ !function() { +/******/ (() => { /******/ // define __esModule on exports -/******/ __webpack_require__.r = function(exports) { +/******/ __webpack_require__.r = (exports) => { /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) { /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' }); /******/ } /******/ Object.defineProperty(exports, '__esModule', { value: true }); /******/ }; -/******/ }(); +/******/ })(); /******/ /************************************************************************/ var __webpack_exports__ = {}; @@ -39,13 +39,13 @@ // EXPORTS __webpack_require__.d(__webpack_exports__, { - "escapeAmpersand": function() { return /* binding */ escapeAmpersand; }, - "escapeAttribute": function() { return /* binding */ escapeAttribute; }, - "escapeEditableHTML": function() { return /* binding */ escapeEditableHTML; }, - "escapeHTML": function() { return /* binding */ escapeHTML; }, - "escapeLessThan": function() { return /* binding */ escapeLessThan; }, - "escapeQuotationMark": function() { return /* binding */ escapeQuotationMark; }, - "isValidAttributeName": function() { return /* binding */ isValidAttributeName; } + escapeAmpersand: () => (/* binding */ escapeAmpersand), + escapeAttribute: () => (/* binding */ escapeAttribute), + escapeEditableHTML: () => (/* binding */ escapeEditableHTML), + escapeHTML: () => (/* binding */ escapeHTML), + escapeLessThan: () => (/* binding */ escapeLessThan), + escapeQuotationMark: () => (/* binding */ escapeQuotationMark), + isValidAttributeName: () => (/* binding */ isValidAttributeName) }); ;// CONCATENATED MODULE: ./node_modules/@wordpress/escape-html/build-module/escape-greater.js @@ -70,6 +70,7 @@ * Internal dependencies */ + /** * Regular expression matching invalid attribute names. * @@ -81,13 +82,13 @@ * * @type {RegExp} */ +const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/; -const REGEXP_INVALID_ATTRIBUTE_NAME = /[\u007F-\u009F "'>/="\uFDD0-\uFDEF]/; /** * Returns a string with ampersands escaped. Note that this is an imperfect * implementation, where only ampersands which do not appear as a pattern of * named, decimal, or hexadecimal character references are escaped. Invalid - * named references (i.e. ambiguous ampersand) are are still permitted. + * named references (i.e. ambiguous ampersand) are still permitted. * * @see https://w3c.github.io/html/syntax.html#character-references * @see https://w3c.github.io/html/syntax.html#ambiguous-ampersand @@ -97,10 +98,10 @@ * * @return {string} Escaped string. */ - function escapeAmpersand(value) { return value.replace(/&(?!([a-z0-9]+|#[0-9]+|#x[a-f0-9]+);)/gi, '&'); } + /** * Returns a string with quotation marks replaced. * @@ -108,10 +109,10 @@ * * @return {string} Escaped string. */ - function escapeQuotationMark(value) { return value.replace(/"/g, '"'); } + /** * Returns a string with less-than sign replaced. * @@ -119,10 +120,10 @@ * * @return {string} Escaped string. */ - function escapeLessThan(value) { return value.replace(/