GRAYBYTE WORDPRESS FILE MANAGER2582

Server IP : 198.54.121.189 / Your IP : 216.73.216.34
System : Linux premium69.web-hosting.com 4.18.0-553.44.1.lve.el8.x86_64 #1 SMP Thu Mar 13 14:29:12 UTC 2025 x86_64
PHP Version : 7.4.33
Disable Function : NONE
cURL : ON | WGET : ON | Sudo : OFF | Pkexec : OFF
Directory : /home/giriqfky/trustyourlawyer.com/wp-admin/js/
Upload Files :
Current_dir [ Writeable ] Document_root [ Writeable ]

Command :


Current File : /home/giriqfky/trustyourlawyer.com/wp-admin/js//word-count.js
/**
 * 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: /<!--[\s\S]*?-->/g,
		spaceRegExp: /&nbsp;|&#160;/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;
} )();

[ Back ]
Name
Size
Last Modified
Owner / Group
Permissions
Options
..
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
widgets
--
July 10 2025 04:32:19
giriqfky / giriqfky
0755
.htaccess
0.41 KB
July 10 2025 04:32:19
giriqfky / giriqfky
0644
accordion.js
2.864 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
accordion.min.js
0.74 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
application-passwords.js
6.244 KB
September 18 2023 08:21:24
giriqfky / giriqfky
0644
application-passwords.min.js
2.953 KB
September 18 2023 08:21:24
giriqfky / giriqfky
0644
auth-app.js
5.66 KB
February 24 2021 06:15:04
giriqfky / giriqfky
0644
auth-app.min.js
2.035 KB
April 09 2022 05:37:18
giriqfky / giriqfky
0644
code-editor.js
11.316 KB
July 28 2020 09:05:02
giriqfky / giriqfky
0644
code-editor.min.js
3.011 KB
June 27 2024 23:21:44
giriqfky / giriqfky
0644
color-picker.js
9.539 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
color-picker.min.js
3.404 KB
April 09 2022 05:37:18
giriqfky / giriqfky
0644
comment.js
2.851 KB
February 12 2024 05:44:20
giriqfky / giriqfky
0644
comment.min.js
1.284 KB
April 09 2022 05:37:18
giriqfky / giriqfky
0644
common.js
61.15 KB
April 30 2025 20:18:09
giriqfky / giriqfky
0644
common.min.js
23.121 KB
April 30 2025 20:18:09
giriqfky / giriqfky
0644
custom-background.js
3.354 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
custom-background.min.js
1.178 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
custom-header.js
1.976 KB
February 24 2021 06:15:04
giriqfky / giriqfky
0644
customize-controls.js
287.36 KB
February 11 2025 20:13:47
giriqfky / giriqfky
0644
customize-controls.min.js
109.14 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
customize-nav-menus.js
110.925 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
customize-nav-menus.min.js
46.89 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
customize-widgets.js
70.046 KB
June 22 2024 03:47:14
giriqfky / giriqfky
0644
customize-widgets.min.js
27.407 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
dashboard.js
27.018 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
dashboard.min.js
8.654 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
edit-comments.js
37.115 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
edit-comments.min.js
15.125 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
editor-expand.js
41.607 KB
April 13 2024 03:17:14
giriqfky / giriqfky
0644
editor-expand.min.js
13.136 KB
June 27 2024 23:21:44
giriqfky / giriqfky
0644
editor.js
43.98 KB
April 30 2025 20:18:09
giriqfky / giriqfky
0644
editor.min.js
12.76 KB
April 30 2025 20:18:09
giriqfky / giriqfky
0644
farbtastic.js
7.665 KB
July 18 2023 07:33:26
giriqfky / giriqfky
0644
gallery.js
5.413 KB
October 10 2023 07:01:28
giriqfky / giriqfky
0644
gallery.min.js
3.653 KB
October 10 2023 07:01:28
giriqfky / giriqfky
0644
image-edit.js
39.977 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
image-edit.min.js
15.151 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
inline-edit-post.js
20.166 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
inline-edit-post.min.js
9.413 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
inline-edit-tax.js
7.614 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
inline-edit-tax.min.js
2.927 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
iris.min.js
23.089 KB
November 04 2021 05:10:00
giriqfky / giriqfky
0644
language-chooser.js
0.869 KB
February 24 2021 06:15:04
giriqfky / giriqfky
0644
language-chooser.min.js
0.413 KB
February 24 2021 06:15:04
giriqfky / giriqfky
0644
link.js
3.894 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
link.min.js
1.701 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
media-gallery.js
1.272 KB
February 24 2021 06:15:04
giriqfky / giriqfky
0644
media-gallery.min.js
0.597 KB
April 09 2022 05:37:18
giriqfky / giriqfky
0644
media-upload.js
3.384 KB
January 22 2021 23:02:04
giriqfky / giriqfky
0644
media-upload.min.js
1.125 KB
February 03 2023 03:06:32
giriqfky / giriqfky
0644
media.js
6.606 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
media.min.js
2.382 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
nav-menu.js
60.443 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
nav-menu.min.js
29.771 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
password-strength-meter.js
4.137 KB
January 22 2021 23:02:04
giriqfky / giriqfky
0644
password-strength-meter.min.js
1.097 KB
January 22 2021 23:02:04
giriqfky / giriqfky
0644
password-toggle.js
1.308 KB
June 24 2023 08:39:30
giriqfky / giriqfky
0644
password-toggle.min.js
0.827 KB
June 24 2023 08:39:30
giriqfky / giriqfky
0644
plugin-install.js
6.92 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
plugin-install.min.js
2.347 KB
February 03 2023 03:06:32
giriqfky / giriqfky
0644
post.js
38.679 KB
February 11 2025 20:13:47
giriqfky / giriqfky
0644
post.min.js
18.403 KB
February 11 2025 20:13:47
giriqfky / giriqfky
0644
postbox.js
18.493 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
postbox.min.js
6.603 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
privacy-tools.js
10.667 KB
June 22 2024 03:47:14
giriqfky / giriqfky
0644
privacy-tools.min.js
5.033 KB
June 22 2024 03:47:14
giriqfky / giriqfky
0644
revisions.js
33.915 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
revisions.min.js
17.97 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
set-post-thumbnail.js
0.855 KB
July 08 2020 04:25:04
giriqfky / giriqfky
0644
set-post-thumbnail.min.js
0.605 KB
July 08 2020 04:25:04
giriqfky / giriqfky
0644
site-health.js
13.149 KB
December 29 2023 01:57:16
giriqfky / giriqfky
0644
site-health.min.js
6.135 KB
December 29 2023 01:57:16
giriqfky / giriqfky
0644
site-icon.js
6.097 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
site-icon.min.js
2.201 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
svg-painter.js
3.203 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
svg-painter.min.js
1.53 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
tags-box.js
10.879 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
tags-box.min.js
3.005 KB
February 03 2023 03:06:32
giriqfky / giriqfky
0644
tags-suggest.js
5.636 KB
February 19 2024 08:46:14
giriqfky / giriqfky
0644
tags-suggest.min.js
2.216 KB
February 19 2024 08:46:14
giriqfky / giriqfky
0644
tags.js
4.851 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
tags.min.js
2.042 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
theme-plugin-editor.js
24.766 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
theme-plugin-editor.min.js
11.435 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
theme.js
54.667 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
theme.min.js
26.417 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
updates.js
109.335 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
updates.min.js
47.272 KB
April 16 2025 14:34:13
giriqfky / giriqfky
0644
user-profile.js
14.995 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
user-profile.min.js
6.701 KB
November 14 2024 08:09:19
giriqfky / giriqfky
0644
user-suggest.js
2.247 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
user-suggest.min.js
0.66 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
widgets.js
22.557 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
widgets.min.js
12.313 KB
February 03 2023 03:06:32
giriqfky / giriqfky
0644
word-count.js
7.516 KB
July 28 2020 09:05:02
giriqfky / giriqfky
0644
word-count.min.js
1.494 KB
February 03 2023 03:06:32
giriqfky / giriqfky
0644
xfn.js
0.723 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644
xfn.min.js
0.447 KB
March 19 2021 04:31:04
giriqfky / giriqfky
0644

GRAYBYTE WORDPRESS FILE MANAGER @ 2025
CONTACT ME
Static GIF