/home/desid573/public_html/magicride.ng/wp-admin/js
NameSizeModeActions
widgets/-0755rm
accordion.js29530644editdlrm
accordion.min.js8300644editdlrm
code-editor.js115870644editdlrm
code-editor.min.js30690644editdlrm
color-picker.js98230644editdlrm
color-picker.min.js34860644editdlrm
comment.js27950644editdlrm
comment.min.js12300644editdlrm
common.js427640644editdlrm
common.min.js152190644editdlrm
custom-background.js34260644editdlrm
custom-background.min.js11620644editdlrm
custom-header.js20190644editdlrm
customize-controls.js2908020644editdlrm
customize-controls.min.js1107480644editdlrm
customize-nav-menus.js1090100644editdlrm
customize-nav-menus.min.js459750644editdlrm
customize-widgets.js714890644editdlrm
customize-widgets.min.js279660644editdlrm
dashboard.js188580644editdlrm
dashboard.min.js66150644editdlrm
edit-comments.js292700644editdlrm
edit-comments.min.js150440644editdlrm
editor-expand.js426310644editdlrm
editor-expand.min.js134160644editdlrm
editor.js453130644editdlrm
editor.min.js131920644editdlrm
farbtastic.js76890644editdlrm
gallery.js56380644editdlrm
gallery.min.js38010644editdlrm
image-edit.js292940644editdlrm
image-edit.min.js100700644editdlrm
inline-edit-post.js163070644editdlrm
inline-edit-post.min.js72840644editdlrm
inline-edit-tax.js77010644editdlrm
inline-edit-tax.min.js28710644editdlrm
iris.min.js236080644editdlrm
language-chooser.js8730644editdlrm
language-chooser.min.js3740644editdlrm
link.js38750644editdlrm
link.min.js16350644editdlrm
media-gallery.js13060644editdlrm
media-gallery.min.js5780644editdlrm
media-upload.js34630644editdlrm
media-upload.min.js11120644editdlrm
media.js52270644editdlrm
media.min.js18670644editdlrm
nav-menu.js424820644editdlrm
nav-menu.min.js209490644editdlrm
password-strength-meter.js31730644editdlrm
password-strength-meter.min.js7310644editdlrm
plugin-install.js70170644editdlrm
plugin-install.min.js23530644editdlrm
post.js374070644editdlrm
post.min.js180270644editdlrm
postbox.js117650644editdlrm
postbox.min.js41440644editdlrm
revisions.js337900644editdlrm
revisions.min.js178400644editdlrm
set-post-thumbnail.js8410644editdlrm
set-post-thumbnail.min.js5330644editdlrm
site-health.js86260644editdlrm
site-health.min.js46630644editdlrm
svg-painter.js55220644editdlrm
svg-painter.min.js23370644editdlrm
tags-box.js110400644editdlrm
tags-box.min.js30250644editdlrm
tags-suggest.js54400644editdlrm
tags-suggest.min.js21940644editdlrm
tags.js43460644editdlrm
tags.min.js16550644editdlrm
theme-plugin-editor.js246760644editdlrm
theme-plugin-editor.min.js112010644editdlrm
theme.js543920644editdlrm
theme.min.js264620644editdlrm
updates.js805730644editdlrm
updates.min.js356290644editdlrm
user-profile.js122520644editdlrm
user-profile.min.js62380644editdlrm
user-suggest.js23170644editdlrm
user-suggest.min.js6570644editdlrm
widgets.js228760644editdlrm
widgets.min.js123950644editdlrm
word-count.js76900644editdlrm
word-count.min.js15000644editdlrm
wp-fullscreen-stub.js6780644editdlrm
wp-fullscreen-stub.min.js3260644editdlrm
xfn.js77100644editdlrm
xfn.min.js33520644editdlrm
Edit: /home/desid573/public_html/magicride.ng/wp-admin/js/word-count.js (7690B)
/** * Word or character counting functionality. Count words or characters in a * provided text string. * * @namespace wp.utils * @since 2.6.0 * @output wp-admin/js/word-count.js */ ( function() { /** * Word counting utility * * @namespace wp.utils.wordcounter * @memberof wp.utils * * @class * * @param {Object} settings Optional. Key-value object containing overrides for * settings. * @param {RegExp} settings.HTMLRegExp Optional. Regular expression to find HTML elements. * @param {RegExp} settings.HTMLcommentRegExp Optional. Regular expression to find HTML comments. * @param {RegExp} settings.spaceRegExp Optional. Regular expression to find irregular space * characters. * @param {RegExp} settings.HTMLEntityRegExp Optional. Regular expression to find HTML entities. * @param {RegExp} settings.connectorRegExp Optional. Regular expression to find connectors that * split words. * @param {RegExp} settings.removeRegExp Optional. Regular expression to find remove unwanted * characters to reduce false-positives. * @param {RegExp} settings.astralRegExp Optional. Regular expression to find unwanted * characters when searching for non-words. * @param {RegExp} settings.wordsRegExp Optional. Regular expression to find words by spaces. * @param {RegExp} settings.characters_excluding_spacesRegExp Optional. Regular expression to find characters which * are non-spaces. * @param {RegExp} settings.characters_including_spacesRegExp Optional. Regular expression to find characters * including spaces. * @param {RegExp} settings.shortcodesRegExp Optional. Regular expression to find shortcodes. * @param {Object} settings.l10n Optional. Localization object containing specific * configuration for the current localization. * @param {String} settings.l10n.type Optional. Method of finding words to count. * @param {Array} settings.l10n.shortcodes Optional. Array of shortcodes that should be removed * from the text. * * @return void */ function WordCounter( settings ) { var key, shortcodes; // Apply provided settings to object settings. if ( settings ) { for ( key in settings ) { // Only apply valid settings. if ( settings.hasOwnProperty( key ) ) { this.settings[ key ] = settings[ key ]; } } } shortcodes = this.settings.l10n.shortcodes; // If there are any localization shortcodes, add this as type in the settings. if ( shortcodes && shortcodes.length ) { this.settings.shortcodesRegExp = new RegExp( '\\[\\/?(?:' + shortcodes.join( '|' ) + ')[^\\]]*?\\]', 'g' ); } } // Default settings. WordCounter.prototype.settings = { HTMLRegExp: /<\/?[a-z][^>]*?>/gi, HTMLcommentRegExp: //g, spaceRegExp: / | /gi, HTMLEntityRegExp: /&\S+?;/g, // \u2014 = em-dash connectorRegExp: /--|\u2014/g, // Characters to be removed from input text. removeRegExp: new RegExp( [ '[', // Basic Latin (extract) '\u0021-\u0040\u005B-\u0060\u007B-\u007E', // Latin-1 Supplement (extract) '\u0080-\u00BF\u00D7\u00F7', /* * The following range consists of: * General Punctuation * Superscripts and Subscripts * Currency Symbols * Combining Diacritical Marks for Symbols * Letterlike Symbols * Number Forms * Arrows * Mathematical Operators * Miscellaneous Technical * Control Pictures * Optical Character Recognition * Enclosed Alphanumerics * Box Drawing * Block Elements * Geometric Shapes * Miscellaneous Symbols * Dingbats * Miscellaneous Mathematical Symbols-A * Supplemental Arrows-A * Braille Patterns * Supplemental Arrows-B * Miscellaneous Mathematical Symbols-B * Supplemental Mathematical Operators * Miscellaneous Symbols and Arrows */ '\u2000-\u2BFF', // Supplemental Punctuation '\u2E00-\u2E7F', ']' ].join( '' ), 'g' ), // Remove UTF-16 surrogate points, see https://en.wikipedia.org/wiki/UTF-16#U.2BD800_to_U.2BDFFF astralRegExp: /[\uD800-\uDBFF][\uDC00-\uDFFF]/g, wordsRegExp: /\S\s+/g, characters_excluding_spacesRegExp: /\S/g, /* * Match anything that is not a formatting character, excluding: * \f = form feed * \n = new line * \r = carriage return * \t = tab * \v = vertical tab * \u00AD = soft hyphen * \u2028 = line separator * \u2029 = paragraph separator */ characters_including_spacesRegExp: /[^\f\n\r\t\v\u00AD\u2028\u2029]/g, l10n: window.wordCountL10n || {} }; /** * Counts the number of words (or other specified type) in the specified text. * * @since 2.6.0 * @memberof wp.utils.wordcounter * * @param {String} text Text to count elements in. * @param {String} type Optional. Specify type to use. * * @return {Number} The number of items counted. */ WordCounter.prototype.count = function( text, type ) { var count = 0; // Use default type if none was provided. type = type || this.settings.l10n.type; // Sanitize type to one of three possibilities: 'words', 'characters_excluding_spaces' or 'characters_including_spaces'. if ( type !== 'characters_excluding_spaces' && type !== 'characters_including_spaces' ) { type = 'words'; } // If we have any text at all. if ( text ) { text = text + '\n'; // Replace all HTML with a new-line. text = text.replace( this.settings.HTMLRegExp, '\n' ); // Remove all HTML comments. text = text.replace( this.settings.HTMLcommentRegExp, '' ); // If a shortcode regular expression has been provided use it to remove shortcodes. if ( this.settings.shortcodesRegExp ) { text = text.replace( this.settings.shortcodesRegExp, '\n' ); } // Normalize non-breaking space to a normal space. text = text.replace( this.settings.spaceRegExp, ' ' ); if ( type === 'words' ) { // Remove HTML Entities. text = text.replace( this.settings.HTMLEntityRegExp, '' ); // Convert connectors to spaces to count attached text as words. text = text.replace( this.settings.connectorRegExp, ' ' ); // Remove unwanted characters. text = text.replace( this.settings.removeRegExp, '' ); } else { // Convert HTML Entities to "a". text = text.replace( this.settings.HTMLEntityRegExp, 'a' ); // Remove surrogate points. text = text.replace( this.settings.astralRegExp, 'a' ); } // Match with the selected type regular expression to count the items. text = text.match( this.settings[ type + 'RegExp' ] ); // If we have any matches, set the count to the number of items found. if ( text ) { count = text.length; } } return count; }; // Add the WordCounter to the WP Utils. window.wp = window.wp || {}; window.wp.utils = window.wp.utils || {}; window.wp.utils.WordCounter = WordCounter; } )();