diff options
author | Jesús Eduardo <heckyel@hyperbola.info> | 2017-08-06 20:43:24 -0500 |
---|---|---|
committer | Jesús Eduardo <heckyel@hyperbola.info> | 2017-08-06 20:43:24 -0500 |
commit | f7045b862a5b7c3de8ee2ea3da67616b38a667cc (patch) | |
tree | 504f420546df4934495bbd6f3d9761650b3783bd /lib/jquery/src/var/rnothtmlwhite.js | |
download | ytlibre-f7045b862a5b7c3de8ee2ea3da67616b38a667cc.tar.lz ytlibre-f7045b862a5b7c3de8ee2ea3da67616b38a667cc.tar.xz ytlibre-f7045b862a5b7c3de8ee2ea3da67616b38a667cc.zip |
first commit
Diffstat (limited to 'lib/jquery/src/var/rnothtmlwhite.js')
-rw-r--r-- | lib/jquery/src/var/rnothtmlwhite.js | 8 |
1 files changed, 8 insertions, 0 deletions
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 ); +} ); |