dnet50/modules/dli-service-portal/trunk/static/bower_components/jquery/src/core/stripAndCollapse.js @ 50035
1 |
define( [ |
---|---|
2 |
"../var/rnothtmlwhite" |
3 |
], function( rnothtmlwhite ) { |
4 |
"use strict"; |
5 |
|
6 |
// Strip and collapse whitespace according to HTML spec
|
7 |
// https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace
|
8 |
function stripAndCollapse( value ) { |
9 |
var tokens = value.match( rnothtmlwhite ) || []; |
10 |
return tokens.join( " " ); |
11 |
}
|
12 |
|
13 |
return stripAndCollapse; |
14 |
} ); |