Remove more IE compatibility

This commit is contained in:
Maximilian Krög
2022-08-12 00:19:24 +02:00
parent c0d0e8e749
commit 5c4339f367
12 changed files with 6 additions and 39 deletions

View File

@@ -36,16 +36,12 @@ export const GMLNS = 'http://www.opengis.net/gml';
/**
* A regular expression that matches if a string only contains whitespace
* characters. It will e.g. match `''`, `' '`, `'\n'` etc. The non-breaking
* space (0xa0) is explicitly included as IE doesn't include it in its
* definition of `\s`.
*
* Information from `goog.string.isEmptyOrWhitespace`: https://github.com/google/closure-library/blob/e877b1e/closure/goog/string/string.js#L156-L160
* characters. It will e.g. match `''`, `' '`, `'\n'` etc.
*
* @const
* @type {RegExp}
*/
const ONLY_WHITESPACE_RE = /^[\s\xa0]*$/;
const ONLY_WHITESPACE_RE = /^\s*$/;
/**
* @typedef {Object} Options