initial commit
This commit is contained in:
14
public/scripts/jquery/src/core/stripAndCollapse.js
vendored
Normal file
14
public/scripts/jquery/src/core/stripAndCollapse.js
vendored
Normal file
@@ -0,0 +1,14 @@
|
||||
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;
|
||||
} );
|
Reference in New Issue
Block a user