@wordpress/wordcount
Advanced tools
Comparing version 2.8.0 to 2.9.0
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function stripConnectors(settings, text) { | ||
if (settings.connectorRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.connectorRegExp, ' '); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function stripHTMLComments(settings, text) { | ||
if (settings.HTMLcommentRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.HTMLcommentRegExp, ''); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function stripHTMLEntities(settings, text) { | ||
if (settings.HTMLEntityRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.HTMLEntityRegExp, ''); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function stripRemovables(settings, text) { | ||
if (settings.removeRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.removeRegExp, ''); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function stripShortcodes(settings, text) { | ||
if (settings.shortcodesRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.shortcodesRegExp, '\n'); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function stripSpaces(settings, text) { | ||
if (settings.spaceRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.spaceRegExp, ' '); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function stripTags(settings, text) { | ||
if (settings.HTMLRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.HTMLRegExp, '\n'); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function transposeAstralsToCountableChar(settings, text) { | ||
if (settings.astralRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.astralRegExp, 'a'); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function (settings, text) { | ||
export default function transposeHTMLEntitiesToCountableChars(settings, text) { | ||
if (settings.HTMLEntityRegExp) { | ||
@@ -12,0 +12,0 @@ return text.replace(settings.HTMLEntityRegExp, 'a'); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = stripConnectors; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function stripConnectors(settings, text) { | ||
if (settings.connectorRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.connectorRegExp, ' '); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = stripHTMLComments; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function stripHTMLComments(settings, text) { | ||
if (settings.HTMLcommentRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.HTMLcommentRegExp, ''); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = stripHTMLEntities; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function stripHTMLEntities(settings, text) { | ||
if (settings.HTMLEntityRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.HTMLEntityRegExp, ''); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = stripRemovables; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function stripRemovables(settings, text) { | ||
if (settings.removeRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.removeRegExp, ''); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = stripShortcodes; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function stripShortcodes(settings, text) { | ||
if (settings.shortcodesRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.shortcodesRegExp, '\n'); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = stripSpaces; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function stripSpaces(settings, text) { | ||
if (settings.spaceRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.spaceRegExp, ' '); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = stripTags; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function stripTags(settings, text) { | ||
if (settings.HTMLRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.HTMLRegExp, '\n'); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = transposeAstralsToCountableChar; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function transposeAstralsToCountableChar(settings, text) { | ||
if (settings.astralRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.astralRegExp, 'a'); |
@@ -6,3 +6,3 @@ "use strict"; | ||
}); | ||
exports.default = _default; | ||
exports.default = transposeHTMLEntitiesToCountableChars; | ||
@@ -17,3 +17,3 @@ /** | ||
*/ | ||
function _default(settings, text) { | ||
function transposeHTMLEntitiesToCountableChars(settings, text) { | ||
if (settings.HTMLEntityRegExp) { | ||
@@ -20,0 +20,0 @@ return text.replace(settings.HTMLEntityRegExp, 'a'); |
@@ -0,1 +1,5 @@ | ||
<!-- Learn how to maintain this file at https://github.com/WordPress/gutenberg/tree/master/packages#maintaining-changelogs. --> | ||
## Unreleased | ||
## 2.0.3 (2018-10-29) | ||
@@ -2,0 +6,0 @@ |
{ | ||
"name": "@wordpress/wordcount", | ||
"version": "2.8.0", | ||
"version": "2.9.0", | ||
"description": "WordPress word count utility.", | ||
@@ -31,3 +31,3 @@ "author": "The WordPress Contributors", | ||
}, | ||
"gitHead": "65dbf3a9503402ca3837090dc89d0207f7d96352" | ||
"gitHead": "ab0988b3b10ea7603ae701908e780ec40c7ef1d6" | ||
} |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function stripConnectors( settings, text ) { | ||
if ( settings.connectorRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.connectorRegExp, ' ' ); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function stripHTMLComments( settings, text ) { | ||
if ( settings.HTMLcommentRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.HTMLcommentRegExp, '' ); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function stripHTMLEntities( settings, text ) { | ||
if ( settings.HTMLEntityRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.HTMLEntityRegExp, '' ); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function stripRemovables( settings, text ) { | ||
if ( settings.removeRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.removeRegExp, '' ); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function stripShortcodes( settings, text ) { | ||
if ( settings.shortcodesRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.shortcodesRegExp, '\n' ); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function stripSpaces( settings, text ) { | ||
if ( settings.spaceRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.spaceRegExp, ' ' ); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function stripTags( settings, text ) { | ||
if ( settings.HTMLRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.HTMLRegExp, '\n' ); |
@@ -9,3 +9,3 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function transposeAstralsToCountableChar( settings, text ) { | ||
if ( settings.astralRegExp ) { | ||
@@ -12,0 +12,0 @@ return text.replace( settings.astralRegExp, 'a' ); |
@@ -9,3 +9,6 @@ /** | ||
*/ | ||
export default function( settings, text ) { | ||
export default function transposeHTMLEntitiesToCountableChars( | ||
settings, | ||
text | ||
) { | ||
if ( settings.HTMLEntityRegExp ) { | ||
@@ -12,0 +15,0 @@ return text.replace( settings.HTMLEntityRegExp, 'a' ); |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90959
1032
1