Edit File by line
/home/barbar84/www/wp-inclu.../js/dist
File: url.js
/**
[1000] Fix | Delete
* Performs some basic cleanup of a string for use as a post slug.
[1001] Fix | Delete
*
[1002] Fix | Delete
* This replicates some of what `sanitize_title()` does in WordPress core, but
[1003] Fix | Delete
* is only designed to approximate what the slug will be.
[1004] Fix | Delete
*
[1005] Fix | Delete
* Converts Latin-1 Supplement and Latin Extended-A letters to basic Latin
[1006] Fix | Delete
* letters. Removes combining diacritical marks. Converts whitespace, periods,
[1007] Fix | Delete
* and forward slashes to hyphens. Removes any remaining non-word characters
[1008] Fix | Delete
* except hyphens. Converts remaining string to lowercase. It does not account
[1009] Fix | Delete
* for octets, HTML entities, or other encoded characters.
[1010] Fix | Delete
*
[1011] Fix | Delete
* @param {string} string Title or slug to be processed.
[1012] Fix | Delete
*
[1013] Fix | Delete
* @return {string} Processed string.
[1014] Fix | Delete
*/
[1015] Fix | Delete
[1016] Fix | Delete
function cleanForSlug(string) {
[1017] Fix | Delete
if (!string) {
[1018] Fix | Delete
return '';
[1019] Fix | Delete
}
[1020] Fix | Delete
[1021] Fix | Delete
return Object(external_lodash_["trim"])(Object(external_lodash_["deburr"])(string).replace(/[\s\./]+/g, '-').replace(/[^\w-]+/g, '').toLowerCase(), '-');
[1022] Fix | Delete
}
[1023] Fix | Delete
[1024] Fix | Delete
// CONCATENATED MODULE: ./node_modules/@wordpress/url/build-module/index.js
[1025] Fix | Delete
[1026] Fix | Delete
[1027] Fix | Delete
[1028] Fix | Delete
[1029] Fix | Delete
[1030] Fix | Delete
[1031] Fix | Delete
[1032] Fix | Delete
[1033] Fix | Delete
[1034] Fix | Delete
[1035] Fix | Delete
[1036] Fix | Delete
[1037] Fix | Delete
[1038] Fix | Delete
[1039] Fix | Delete
[1040] Fix | Delete
[1041] Fix | Delete
[1042] Fix | Delete
[1043] Fix | Delete
[1044] Fix | Delete
[1045] Fix | Delete
[1046] Fix | Delete
[1047] Fix | Delete
[1048] Fix | Delete
[1049] Fix | Delete
[1050] Fix | Delete
[1051] Fix | Delete
/***/ }),
[1052] Fix | Delete
[1053] Fix | Delete
/***/ "rePB":
[1054] Fix | Delete
/***/ (function(module, __webpack_exports__, __webpack_require__) {
[1055] Fix | Delete
[1056] Fix | Delete
"use strict";
[1057] Fix | Delete
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "a", function() { return _defineProperty; });
[1058] Fix | Delete
function _defineProperty(obj, key, value) {
[1059] Fix | Delete
if (key in obj) {
[1060] Fix | Delete
Object.defineProperty(obj, key, {
[1061] Fix | Delete
value: value,
[1062] Fix | Delete
enumerable: true,
[1063] Fix | Delete
configurable: true,
[1064] Fix | Delete
writable: true
[1065] Fix | Delete
});
[1066] Fix | Delete
} else {
[1067] Fix | Delete
obj[key] = value;
[1068] Fix | Delete
}
[1069] Fix | Delete
[1070] Fix | Delete
return obj;
[1071] Fix | Delete
}
[1072] Fix | Delete
[1073] Fix | Delete
/***/ })
[1074] Fix | Delete
[1075] Fix | Delete
/******/ });
[1076] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function