diff options
Diffstat (limited to 'vnfmarket/common/thirdparty/jquery/src/core/stripAndCollapse.js')
-rw-r--r-- | vnfmarket/common/thirdparty/jquery/src/core/stripAndCollapse.js | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/vnfmarket/common/thirdparty/jquery/src/core/stripAndCollapse.js b/vnfmarket/common/thirdparty/jquery/src/core/stripAndCollapse.js new file mode 100644 index 00000000..ccad6602 --- /dev/null +++ b/vnfmarket/common/thirdparty/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; +} ); |