Skip to content

Commit 006adf2

Browse files
committed
Inline regular expression
1 parent 825c290 commit 006adf2

File tree

1 file changed

+1
-2
lines changed
  • lib/node_modules/@stdlib/assert/is-blank-string/lib

1 file changed

+1
-2
lines changed

lib/node_modules/@stdlib/assert/is-blank-string/lib/main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,11 @@
2121
// MODULES //
2222

2323
var isString = require( '@stdlib/assert/is-string' ).isPrimitive;
24-
var reWhitespace = require( '@stdlib/regexp/whitespace' );
2524

2625

2726
// VARIABLES //
2827

29-
var RE = new RegExp( '^' + reWhitespace.REGEXP.source + '*$' );
28+
var RE = /^[\u0009\u000A\u000B\u000C\u000D\u0020\u0085\u00A0\u1680\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*$/;
3029

3130

3231
// MAIN //

0 commit comments

Comments
 (0)