9 lines
229 B
JavaScript
9 lines
229 B
JavaScript
|
define( function() {
|
||
|
"use strict";
|
||
|
|
||
|
// Only count HTML whitespace
|
||
|
// Other whitespace should count in values
|
||
|
// https://html.spec.whatwg.org/multipage/infrastructure.html#space-character
|
||
|
return ( /[^\x20\t\r\n\f]+/g );
|
||
|
} );
|