From f7045b862a5b7c3de8ee2ea3da67616b38a667cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jes=C3=BAs=20Eduardo?= Date: Sun, 6 Aug 2017 20:43:24 -0500 Subject: first commit --- lib/jquery/src/var/rnothtmlwhite.js | 8 ++++++++ 1 file changed, 8 insertions(+) create mode 100644 lib/jquery/src/var/rnothtmlwhite.js (limited to 'lib/jquery/src/var/rnothtmlwhite.js') diff --git a/lib/jquery/src/var/rnothtmlwhite.js b/lib/jquery/src/var/rnothtmlwhite.js new file mode 100644 index 0000000..30604db --- /dev/null +++ b/lib/jquery/src/var/rnothtmlwhite.js @@ -0,0 +1,8 @@ +define( function() { + "use strict"; + + // Only count HTML whitespace + // Other whitespace should count in values + // https://html.spec.whatwg.org/multipage/infrastructure.html#space-character + return ( /[^\x20\t\r\n\f]+/g ); +} ); -- cgit v1.2.3