yoastseo-dep
Version:
Yoast clientside page analysis
24 lines (22 loc) • 573 B
JavaScript
/**
* Returns the word boundaries.
* @returns {string[]} The array of word boundaries.
*/
export default function() {
return [
// Whitespace is always a word boundary.
" ", "\\n", "\\r", "\\t",
// NO-BREAK SPACE.
"\u00a0",
// \u06d4 - Urdu full stop
"\u06d4",
// \u061f - Arabic question mark
"\u061f",
// \u060C - Arabic comma
"\u060C",
// \u061B - Arabic semicolon
"\u061B",
" ",
".", ",", "'", "(", ")", "\"", "+", "-", ";", "!", "?", ":", "/", "»", "«", "‹", "›", "<", ">",
"”", "“", "〝", "〞", "〟", "‟", "„" ];
}