mirror of
https://github.com/Combodo/iTop.git
synced 2026-05-15 21:38:47 +02:00
- Manage lib through NPM - Move portal / Bootstrap files back to the itop-portal-base module (not managed through NPM yet) - Fix SCSS classes for the backoffice as it was based on the bootstrap CSS classes which are not there anymore Note: jQuery is included as a dependency, will check with the team if we can force it not to be retrieved
15 lines
362 B
JavaScript
15 lines
362 B
JavaScript
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;
|
|
} );
|