equal
deleted
inserted
replaced
40 // EXPORTS |
40 // EXPORTS |
41 __webpack_require__.d(__webpack_exports__, { |
41 __webpack_require__.d(__webpack_exports__, { |
42 count: () => (/* binding */ count) |
42 count: () => (/* binding */ count) |
43 }); |
43 }); |
44 |
44 |
45 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/defaultSettings.js |
45 ;// ./node_modules/@wordpress/wordcount/build-module/defaultSettings.js |
46 /** @typedef {import('./index').WPWordCountStrategy} WPWordCountStrategy */ |
46 /** @typedef {import('./index').WPWordCountStrategy} WPWordCountStrategy */ |
47 |
47 |
48 /** @typedef {Partial<{type: WPWordCountStrategy, shortcodes: string[]}>} WPWordCountL10n */ |
48 /** @typedef {Partial<{type: WPWordCountStrategy, shortcodes: string[]}>} WPWordCountL10n */ |
49 |
49 |
50 /** |
50 /** |
142 l10n: { |
142 l10n: { |
143 type: 'words' |
143 type: 'words' |
144 } |
144 } |
145 }; |
145 }; |
146 |
146 |
147 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripTags.js |
147 ;// ./node_modules/@wordpress/wordcount/build-module/stripTags.js |
148 /** |
148 /** |
149 * Replaces items matched in the regex with new line |
149 * Replaces items matched in the regex with new line |
150 * |
150 * |
151 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
151 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
152 * @param {string} text The string being counted. |
152 * @param {string} text The string being counted. |
155 */ |
155 */ |
156 function stripTags(settings, text) { |
156 function stripTags(settings, text) { |
157 return text.replace(settings.HTMLRegExp, '\n'); |
157 return text.replace(settings.HTMLRegExp, '\n'); |
158 } |
158 } |
159 |
159 |
160 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/transposeAstralsToCountableChar.js |
160 ;// ./node_modules/@wordpress/wordcount/build-module/transposeAstralsToCountableChar.js |
161 /** |
161 /** |
162 * Replaces items matched in the regex with character. |
162 * Replaces items matched in the regex with character. |
163 * |
163 * |
164 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
164 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
165 * @param {string} text The string being counted. |
165 * @param {string} text The string being counted. |
168 */ |
168 */ |
169 function transposeAstralsToCountableChar(settings, text) { |
169 function transposeAstralsToCountableChar(settings, text) { |
170 return text.replace(settings.astralRegExp, 'a'); |
170 return text.replace(settings.astralRegExp, 'a'); |
171 } |
171 } |
172 |
172 |
173 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripHTMLEntities.js |
173 ;// ./node_modules/@wordpress/wordcount/build-module/stripHTMLEntities.js |
174 /** |
174 /** |
175 * Removes items matched in the regex. |
175 * Removes items matched in the regex. |
176 * |
176 * |
177 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
177 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
178 * @param {string} text The string being counted. |
178 * @param {string} text The string being counted. |
181 */ |
181 */ |
182 function stripHTMLEntities(settings, text) { |
182 function stripHTMLEntities(settings, text) { |
183 return text.replace(settings.HTMLEntityRegExp, ''); |
183 return text.replace(settings.HTMLEntityRegExp, ''); |
184 } |
184 } |
185 |
185 |
186 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripConnectors.js |
186 ;// ./node_modules/@wordpress/wordcount/build-module/stripConnectors.js |
187 /** |
187 /** |
188 * Replaces items matched in the regex with spaces. |
188 * Replaces items matched in the regex with spaces. |
189 * |
189 * |
190 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
190 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
191 * @param {string} text The string being counted. |
191 * @param {string} text The string being counted. |
194 */ |
194 */ |
195 function stripConnectors(settings, text) { |
195 function stripConnectors(settings, text) { |
196 return text.replace(settings.connectorRegExp, ' '); |
196 return text.replace(settings.connectorRegExp, ' '); |
197 } |
197 } |
198 |
198 |
199 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripRemovables.js |
199 ;// ./node_modules/@wordpress/wordcount/build-module/stripRemovables.js |
200 /** |
200 /** |
201 * Removes items matched in the regex. |
201 * Removes items matched in the regex. |
202 * |
202 * |
203 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
203 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
204 * @param {string} text The string being counted. |
204 * @param {string} text The string being counted. |
207 */ |
207 */ |
208 function stripRemovables(settings, text) { |
208 function stripRemovables(settings, text) { |
209 return text.replace(settings.removeRegExp, ''); |
209 return text.replace(settings.removeRegExp, ''); |
210 } |
210 } |
211 |
211 |
212 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripHTMLComments.js |
212 ;// ./node_modules/@wordpress/wordcount/build-module/stripHTMLComments.js |
213 /** |
213 /** |
214 * Removes items matched in the regex. |
214 * Removes items matched in the regex. |
215 * |
215 * |
216 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
216 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
217 * @param {string} text The string being counted. |
217 * @param {string} text The string being counted. |
220 */ |
220 */ |
221 function stripHTMLComments(settings, text) { |
221 function stripHTMLComments(settings, text) { |
222 return text.replace(settings.HTMLcommentRegExp, ''); |
222 return text.replace(settings.HTMLcommentRegExp, ''); |
223 } |
223 } |
224 |
224 |
225 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripShortcodes.js |
225 ;// ./node_modules/@wordpress/wordcount/build-module/stripShortcodes.js |
226 /** |
226 /** |
227 * Replaces items matched in the regex with a new line. |
227 * Replaces items matched in the regex with a new line. |
228 * |
228 * |
229 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
229 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
230 * @param {string} text The string being counted. |
230 * @param {string} text The string being counted. |
236 return text.replace(settings.shortcodesRegExp, '\n'); |
236 return text.replace(settings.shortcodesRegExp, '\n'); |
237 } |
237 } |
238 return text; |
238 return text; |
239 } |
239 } |
240 |
240 |
241 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/stripSpaces.js |
241 ;// ./node_modules/@wordpress/wordcount/build-module/stripSpaces.js |
242 /** |
242 /** |
243 * Replaces items matched in the regex with spaces. |
243 * Replaces items matched in the regex with spaces. |
244 * |
244 * |
245 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
245 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
246 * @param {string} text The string being counted. |
246 * @param {string} text The string being counted. |
249 */ |
249 */ |
250 function stripSpaces(settings, text) { |
250 function stripSpaces(settings, text) { |
251 return text.replace(settings.spaceRegExp, ' '); |
251 return text.replace(settings.spaceRegExp, ' '); |
252 } |
252 } |
253 |
253 |
254 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/transposeHTMLEntitiesToCountableChars.js |
254 ;// ./node_modules/@wordpress/wordcount/build-module/transposeHTMLEntitiesToCountableChars.js |
255 /** |
255 /** |
256 * Replaces items matched in the regex with a single character. |
256 * Replaces items matched in the regex with a single character. |
257 * |
257 * |
258 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
258 * @param {import('./index').WPWordCountSettings} settings The main settings object containing regular expressions |
259 * @param {string} text The string being counted. |
259 * @param {string} text The string being counted. |
262 */ |
262 */ |
263 function transposeHTMLEntitiesToCountableChars(settings, text) { |
263 function transposeHTMLEntitiesToCountableChars(settings, text) { |
264 return text.replace(settings.HTMLEntityRegExp, 'a'); |
264 return text.replace(settings.HTMLEntityRegExp, 'a'); |
265 } |
265 } |
266 |
266 |
267 ;// CONCATENATED MODULE: ./node_modules/@wordpress/wordcount/build-module/index.js |
267 ;// ./node_modules/@wordpress/wordcount/build-module/index.js |
268 /** |
268 /** |
269 * Internal dependencies |
269 * Internal dependencies |
270 */ |
270 */ |
271 |
271 |
272 |
272 |