WMTS getCapabilities readCoodinates more than one whitespace delimiter

remove not required regexp modifier
This commit is contained in:
MarquesDeAzevedo
2018-08-07 10:40:08 +02:00
committed by GitHub
parent 47c4e1a165
commit 85e1f11adb
+1 -1
View File
@@ -340,7 +340,7 @@ function readLegendUrl(node, objectStack) {
* @return {Object|undefined} Coordinates object. * @return {Object|undefined} Coordinates object.
*/ */
function readCoordinates(node, objectStack) { function readCoordinates(node, objectStack) {
const coordinates = readString(node).split(/\s+/g); const coordinates = readString(node).split(/\s+/);
if (!coordinates || coordinates.length != 2) { if (!coordinates || coordinates.length != 2) {
return undefined; return undefined;
} }