/home/vianto5/realtylifestyleproperties.mx/wp-includes/js/dist
NameSizeModeActions
development/-0755rm
script-modules/-0755rm
vendor/-0755rm
a11y.js85700644editdlrm
a11y.min.js23580644editdlrm
annotations.js233350644editdlrm
annotations.min.js55210644editdlrm
api-fetch.js238740644editdlrm
api-fetch.min.js58380644editdlrm
autop.js159820644editdlrm
autop.min.js56140644editdlrm
blob.js46220644editdlrm
blob.min.js11080644editdlrm
block-directory.js805260644editdlrm
block-directory.min.js207340644editdlrm
block-editor.js27243450644editdlrm
block-editor.min.js8659410644editdlrm
block-library.js22328740644editdlrm
block-library.min.js8767040644editdlrm
block-serialization-default-parser.js152280644editdlrm
block-serialization-default-parser.min.js24000644editdlrm
blocks.js5673130644editdlrm
blocks.min.js1735620644editdlrm
commands.js1827240644editdlrm
commands.min.js494290644editdlrm
components.js23576670644editdlrm
components.min.js7190280644editdlrm
compose.js2003000644editdlrm
compose.min.js368530644editdlrm
core-commands.js243980644editdlrm
core-commands.min.js94160644editdlrm
core-data.js2674930644editdlrm
core-data.min.js657830644editdlrm
customize-widgets.js976150644editdlrm
customize-widgets.min.js349990644editdlrm
data-controls.js72430644editdlrm
data-controls.min.js14720644editdlrm
data.js1449470644editdlrm
data.min.js255960644editdlrm
date.js8175730644editdlrm
date.min.js7834240644editdlrm
deprecated.js46940644editdlrm
deprecated.min.js6840644editdlrm
dom-ready.js24640644editdlrm
dom-ready.min.js4570644editdlrm
dom.js621270644editdlrm
dom.min.js125470644editdlrm
edit-post.js1233210644editdlrm
edit-post.min.js422630644editdlrm
edit-site.js16406940644editdlrm
edit-site.min.js6411380644editdlrm
edit-widgets.js1756040644editdlrm
edit-widgets.min.js586050644editdlrm
editor.js12123270644editdlrm
editor.min.js3969960644editdlrm
element.js681300644editdlrm
element.min.js119680644editdlrm
escape-html.js60030644editdlrm
escape-html.min.js10000644editdlrm
format-library.js684670644editdlrm
format-library.min.js227690644editdlrm
hooks.js206870644editdlrm
hooks.min.js47760644editdlrm
html-entities.js37060644editdlrm
html-entities.min.js7880644editdlrm
i18n.js496270644editdlrm
i18n.min.js91410644editdlrm
is-shallow-equal.js42870644editdlrm
is-shallow-equal.min.js10180644editdlrm
keyboard-shortcuts.js244790644editdlrm
keyboard-shortcuts.min.js30170644editdlrm
keycodes.js141130644editdlrm
keycodes.min.js26420644editdlrm
list-reusable-blocks.js313550644editdlrm
list-reusable-blocks.min.js47370644editdlrm
media-utils.js314620644editdlrm
media-utils.min.js99680644editdlrm
notices.js219890644editdlrm
notices.min.js20700644editdlrm
nux.js132950644editdlrm
nux.min.js35090644editdlrm
patterns.js640490644editdlrm
patterns.min.js214540644editdlrm
plugins.js182770644editdlrm
plugins.min.js42840644editdlrm
preferences-persistence.js300150644editdlrm
preferences-persistence.min.js56250644editdlrm
preferences.js256410644editdlrm
preferences.min.js70120644editdlrm
primitives.js67200644editdlrm
primitives.min.js16550644editdlrm
priority-queue.js142080644editdlrm
priority-queue.min.js33780644editdlrm
private-apis.js85030644editdlrm
private-apis.min.js28150644editdlrm
redux-routine.js237340644editdlrm
redux-routine.min.js88890644editdlrm
reusable-blocks.js204320644editdlrm
reusable-blocks.min.js61120644editdlrm
rich-text.js1206840644editdlrm
rich-text.min.js310050644editdlrm
router.js532610644editdlrm
router.min.js135320644editdlrm
server-side-render.js145990644editdlrm
server-side-render.min.js43680644editdlrm
shortcode.js145780644editdlrm
shortcode.min.js29000644editdlrm
style-engine.js400040644editdlrm
style-engine.min.js60500644editdlrm
token-list.js60490644editdlrm
token-list.min.js12710644editdlrm
url.js348240644editdlrm
url.min.js85230644editdlrm
viewport.js104650644editdlrm
viewport.min.js18680644editdlrm
warning.js24440644editdlrm
warning.min.js3110644editdlrm
widgets.js537370644editdlrm
widgets.min.js200340644editdlrm
wordcount.js147480644editdlrm
wordcount.min.js24800644editdlrm
Edit: /home/vianto5/realtylifestyleproperties.mx/wp-includes/js/dist/autop.js (15982B)
/******/ (() => { // 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. */ 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 input The text which has to be formatted. * * @return 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 = 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 haystack The text which has to be formatted. * @param replacePairs In the form {from: 'to', …}. * * @return 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 text The text which has to be formatted. * @param 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 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