/home/vianto5/.trash/cititower.mx/wp-includes/js/dist
NameSizeModeActions
development/-0755rm
vendor/-0755rm
a11y.js85610644editdlrm
a11y.min.js23580644editdlrm
annotations.js235480644editdlrm
annotations.min.js55210644editdlrm
api-fetch.js233700644editdlrm
api-fetch.min.js54960644editdlrm
autop.js162050644editdlrm
autop.min.js56140644editdlrm
blob.js47950644editdlrm
blob.min.js11080644editdlrm
block-directory.js808130644editdlrm
block-directory.min.js207640644editdlrm
block-editor.js25429900644editdlrm
block-editor.min.js8130720644editdlrm
block-library.js21421070644editdlrm
block-library.min.js8348740644editdlrm
block-serialization-default-parser.js152280644editdlrm
block-serialization-default-parser.min.js24000644editdlrm
blocks.js5522760644editdlrm
blocks.min.js1712560644editdlrm
commands.js1797110644editdlrm
commands.min.js462890644editdlrm
components.js24083910644editdlrm
components.min.js6961670644editdlrm
compose.js2019410644editdlrm
compose.min.js374890644editdlrm
core-commands.js225450644editdlrm
core-commands.min.js81090644editdlrm
core-data.js2521450644editdlrm
core-data.min.js609380644editdlrm
customize-widgets.js994440644editdlrm
customize-widgets.min.js350140644editdlrm
data-controls.js73140644editdlrm
data-controls.min.js14720644editdlrm
data.js1582670644editdlrm
data.min.js270950644editdlrm
date.js8173510644editdlrm
date.min.js7834280644editdlrm
deprecated.js47360644editdlrm
deprecated.min.js6840644editdlrm
dom-ready.js24640644editdlrm
dom-ready.min.js4570644editdlrm
dom.js629310644editdlrm
dom.min.js124870644editdlrm
edit-post.js1167080644editdlrm
edit-post.min.js402120644editdlrm
edit-site.js15142480644editdlrm
edit-site.min.js5897550644editdlrm
edit-widgets.js1783580644editdlrm
edit-widgets.min.js590130644editdlrm
editor.js10029600644editdlrm
editor.min.js3260650644editdlrm
element.js672010644editdlrm
element.min.js119780644editdlrm
escape-html.js62110644editdlrm
escape-html.min.js10000644editdlrm
format-library.js691360644editdlrm
format-library.min.js228340644editdlrm
hooks.js197280644editdlrm
hooks.min.js43070644editdlrm
html-entities.js37060644editdlrm
html-entities.min.js7880644editdlrm
i18n.js499080644editdlrm
i18n.min.js91410644editdlrm
interactivity-router.asset.php840644editdlrm
interactivity-router.js119850644editdlrm
interactivity-router.min.asset.php840644editdlrm
interactivity-router.min.js30320644editdlrm
interactivity.js979130644editdlrm
interactivity.min.js366860644editdlrm
is-shallow-equal.js43500644editdlrm
is-shallow-equal.min.js10180644editdlrm
keyboard-shortcuts.js247520644editdlrm
keyboard-shortcuts.min.js30170644editdlrm
keycodes.js141030644editdlrm
keycodes.min.js26420644editdlrm
list-reusable-blocks.js306030644editdlrm
list-reusable-blocks.min.js47840644editdlrm
media-utils.js228080644editdlrm
media-utils.min.js73620644editdlrm
notices.js221570644editdlrm
notices.min.js20700644editdlrm
nux.js135070644editdlrm
nux.min.js34250644editdlrm
patterns.js644360644editdlrm
patterns.min.js212670644editdlrm
plugins.js181460644editdlrm
plugins.min.js41460644editdlrm
preferences-persistence.js302880644editdlrm
preferences-persistence.min.js56250644editdlrm
preferences.js263180644editdlrm
preferences.min.js70780644editdlrm
primitives.js68880644editdlrm
primitives.min.js16550644editdlrm
priority-queue.js142480644editdlrm
priority-queue.min.js33780644editdlrm
private-apis.js88680644editdlrm
private-apis.min.js27860644editdlrm
redux-routine.js239870644editdlrm
redux-routine.min.js89000644editdlrm
reusable-blocks.js213540644editdlrm
reusable-blocks.min.js63230644editdlrm
rich-text.js1178780644editdlrm
rich-text.min.js298050644editdlrm
router.js269060644editdlrm
router.min.js43900644editdlrm
server-side-render.js149580644editdlrm
server-side-render.min.js43780644editdlrm
shortcode.js152750644editdlrm
shortcode.min.js29000644editdlrm
style-engine.js384370644editdlrm
style-engine.min.js59280644editdlrm
token-list.js65910644editdlrm
token-list.min.js12640644editdlrm
undo-manager.js84140644editdlrm
undo-manager.min.js16820644editdlrm
url.js342790644editdlrm
url.min.js82260644editdlrm
viewport.js106960644editdlrm
viewport.min.js18680644editdlrm
warning.js25210644editdlrm
warning.min.js3110644editdlrm
widgets.js545730644editdlrm
widgets.min.js201470644editdlrm
wordcount.js149790644editdlrm
wordcount.min.js24800644editdlrm
Edit: /home/vianto5/.trash/cititower.mx/wp-includes/js/dist/autop.js (16205B)
/******/ (() => { // webpackBootstrap /******/ "use strict"; /******/ // The require scope /******/ var __webpack_require__ = {}; /******/ /************************************************************************/ /******/ /* webpack/runtime/define property getters */ /******/ (() => { /******/ // define getter functions for harmony exports /******/ __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 */ /******/ (() => { /******/ __webpack_require__.o = (obj, prop) => (Object.prototype.hasOwnProperty.call(obj, prop)) /******/ })(); /******/ /******/ /* webpack/runtime/make namespace object */ /******/ (() => { /******/ // define __esModule on 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__ = {}; __webpack_require__.r(__webpack_exports__); /* harmony export */ __webpack_require__.d(__webpack_exports__, { /* harmony export */ autop: () => (/* binding */ autop), /* harmony export */ removep: () => (/* binding */ removep) /* harmony export */ }); /** * The regular expression for an HTML element. * * @type {RegExp} */ const htmlSplitRegex = (() => { /* eslint-disable no-multi-spaces */ const comments = '!' + // Start of comment, after the <. '(?:' + // Unroll the loop: Consume everything until --> is found. '-(?!->)' + // Dash not followed by end of comment. '[^\\-]*' + // Consume non-dashes. ')*' + // Loop possessively. '(?:-->)?'; // End of comment. If not found, match all input. const cdata = '!\\[CDATA\\[' + // Start of comment, after the <. '[^\\]]*' + // Consume non-]. '(?:' + // Unroll the loop: Consume everything until ]]> is found. '](?!]>)' + // One ] not followed by end of comment. '[^\\]]*' + // Consume non-]. ')*?' + // Loop possessively. '(?:]]>)?'; // End of comment. If not found, match all input. const escaped = '(?=' + // Is the element escaped? '!--' + '|' + '!\\[CDATA\\[' + ')' + '((?=!-)' + // If yes, which type? comments + '|' + cdata + ')'; const regex = '(' + // Capture the entire match. '<' + // Find start of element. '(' + // Conditional expression follows. escaped + // Find end of escaped element. '|' + // ... else ... '[^>]*>?' + // Find end of normal element. ')' + ')'; return new RegExp(regex); /* eslint-enable no-multi-spaces */ })(); /** * Separate HTML elements and comments from the text. * * @param {string} input The text which has to be formatted. * * @return {string[]} The formatted text. */ function htmlSplit(input) { const parts = []; let workingInput = input; let match; while (match = workingInput.match(htmlSplitRegex)) { // The `match` result, when invoked on a RegExp with the `g` flag (`/foo/g`) will not include `index`. // If the `g` flag is omitted, `index` is included. // `htmlSplitRegex` does not have the `g` flag so we can assert it will have an index number. // Assert `match.index` is a number. const index = /** @type {number} */match.index; parts.push(workingInput.slice(0, index)); parts.push(match[0]); workingInput = workingInput.slice(index + match[0].length); } if (workingInput.length) { parts.push(workingInput); } return parts; } /** * Replace characters or phrases within HTML elements only. * * @param {string} haystack The text which has to be formatted. * @param {Record} replacePairs In the form {from: 'to', …}. * * @return {string} The formatted text. */ function replaceInHtmlTags(haystack, replacePairs) { // Find all elements. const textArr = htmlSplit(haystack); let changed = false; // Extract all needles. const needles = Object.keys(replacePairs); // Loop through delimiters (elements) only. for (let i = 1; i < textArr.length; i += 2) { for (let j = 0; j < needles.length; j++) { const needle = needles[j]; if (-1 !== textArr[i].indexOf(needle)) { textArr[i] = textArr[i].replace(new RegExp(needle, 'g'), replacePairs[needle]); changed = true; // After one strtr() break out of the foreach loop and look at next element. break; } } } if (changed) { haystack = textArr.join(''); } return haystack; } /** * Replaces double line-breaks with paragraph elements. * * A group of regex replaces used to identify text formatted with newlines and * replace double line-breaks with HTML paragraph tags. The remaining line- * breaks after conversion become `
` tags, unless br is set to 'false'. * * @param {string} text The text which has to be formatted. * @param {boolean} br Optional. If set, will convert all remaining line- * breaks after paragraphing. Default true. * * @example *```js * import { autop } from '@wordpress/autop'; * autop( 'my text' ); // "

my text

" * ``` * * @return {string} Text which has been converted into paragraph tags. */ function autop(text, br = true) { const preTags = []; if (text.trim() === '') { return ''; } // Just to make things a little easier, pad the end. text = text + '\n'; /* * Pre tags shouldn't be touched by autop. * Replace pre tags with placeholders and bring them back after autop. */ if (text.indexOf(''); const lastText = textParts.pop(); text = ''; for (let i = 0; i < textParts.length; i++) { const textPart = textParts[i]; const start = textPart.indexOf(''; preTags.push([name, textPart.substr(start) + '']); text += textPart.substr(0, start) + name; } text += lastText; } // Change multiple
s into two line breaks, which will turn into paragraphs. text = text.replace(/\s*/g, '\n\n'); const allBlocks = '(?:table|thead|tfoot|caption|col|colgroup|tbody|tr|td|th|div|dl|dd|dt|ul|ol|li|pre|form|map|area|blockquote|address|math|style|p|h[1-6]|hr|fieldset|legend|section|article|aside|hgroup|header|footer|nav|figure|figcaption|details|menu|summary)'; // Add a double line break above block-level opening tags. text = text.replace(new RegExp('(<' + allBlocks + '[\\s/>])', 'g'), '\n\n$1'); // Add a double line break below block-level closing tags. text = text.replace(new RegExp('()', 'g'), '$1\n\n'); // Standardize newline characters to "\n". text = text.replace(/\r\n|\r/g, '\n'); // Find newlines in all elements and add placeholders. text = replaceInHtmlTags(text, { '\n': ' ' }); // Collapse line breaks before and after '); } /* * Collapse line breaks inside elements, before and elements * so they don't get autop'd. */ if (text.indexOf('') !== -1) { text = text.replace(/(]*>)\s*/g, '$1'); text = text.replace(/\s*<\/object>/g, ''); text = text.replace(/\s*(<\/?(?:param|embed)[^>]*>)\s*/g, '$1'); } /* * Collapse line breaks inside