corrade-nucleus-nucleons
/pack-rat/003_pack_rat/pack-rat/bower_components/jquery/src/core/stripAndCollapse.js |
---|
@@ -0,0 +1,14 @@ |
define( [ |
"../var/rnothtmlwhite" |
], function( rnothtmlwhite ) { |
"use strict"; |
// Strip and collapse whitespace according to HTML spec |
// https://html.spec.whatwg.org/multipage/infrastructure.html#strip-and-collapse-whitespace |
function stripAndCollapse( value ) { |
var tokens = value.match( rnothtmlwhite ) || []; |
return tokens.join( " " ); |
} |
return stripAndCollapse; |
} ); |