comparison default/node_modules/jquery/src/core/stripAndCollapse.js @ 0:1d038bc9b3d2 default tip

Up:default
author Liny <dev@neowd.com>
date Sat, 31 May 2025 09:21:51 +0800
parents
children
comparison
equal deleted inserted replaced
-1:000000000000 0:1d038bc9b3d2
1 define( [
2 "../var/rnothtmlwhite"
3 ], function( rnothtmlwhite ) {
4 "use strict";
5
6 // Strip and collapse whitespace according to HTML spec
7 // https://infra.spec.whatwg.org/#strip-and-collapse-ascii-whitespace
8 function stripAndCollapse( value ) {
9 var tokens = value.match( rnothtmlwhite ) || [];
10 return tokens.join( " " );
11 }
12
13 return stripAndCollapse;
14 } );