Skip to content

Commit 21aea7b

Browse files
committed
Fixes whitespace in WKT parser
1 parent 2f1b239 commit 21aea7b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

assets/javascripts/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ var App = (function ($, publ) {
348348
*/
349349
publ.parseHistory = function () {
350350
$('div#history ul.details i').each( function (idx,item) {
351-
var regex = new RegExp(/\w+\s(\((-?\d+.\d+\s?-?\d+.\d+,?)+\))+/g);
351+
var regex = new RegExp(/\w+[\s]?(\((-?\d+.\d+\s?-?\d+.\d+,?)+\))+/g);
352352
var match = $(item).text().match(regex);
353353
if (match !== null) {
354354
var feature = new ol.format.WKT().readFeature(

0 commit comments

Comments
 (0)