Spaces:
Paused

matomo / node_modules /jquery /src /core /stripAndCollapse.js
Leon4gr45's picture
Deploy Matomo fully configured for Hugging Face Spaces (part 5)
ee48649 verified
Raw History Blame
362 Bytes
define( [
"../var/rnothtmlwhite"
], function( rnothtmlwhite ) {
"use strict";
// Strip and collapse whitespace according to HTML spec
// https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
function stripAndCollapse( value ) {
var tokens = value.match( rnothtmlwhite ) || [];
return tokens.join( " " );
}
return stripAndCollapse;
} );