Skip to content

Commit 32cd21a

Browse files
committed
Improved regex
Signed-off-by: Daniel Kastl <[email protected]>
1 parent 44ef38b commit 32cd21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/gtt-client.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,7 @@ export class GttClient {
893893
*/
894894
parseHistory() {
895895
document.querySelectorAll('div#history ul.details i').forEach((item: Element) => {
896-
const regex = new RegExp(/\w+[\s]?(\(*(-?\d+.\d+\s?-?\d+.\d+,?)+\)*)+/g)
896+
const regex = new RegExp(/\w+[\s](\(*(-?\d+.\d+\s?-?\d+.\d+,?)+\)*)+/g)
897897
const match = item.innerHTML.match(regex)
898898
if (match !== null) {
899899
const feature = new WKT().readFeature(

0 commit comments

Comments
 (0)