From 35d865997f2c1140a84c72a013b6f69a1481a9b7 Mon Sep 17 00:00:00 2001 From: Esteban Date: Thu, 24 Mar 2022 08:25:59 +0100 Subject: [PATCH] fix: Removing \r from projection string --- src/app/gcps-utils.service.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/app/gcps-utils.service.ts b/src/app/gcps-utils.service.ts index 517455a..6c97e3f 100644 --- a/src/app/gcps-utils.service.ts +++ b/src/app/gcps-utils.service.ts @@ -13,6 +13,8 @@ export class GcpsUtilsService { projection = "EPSG:4326"; // default } + projection = projection.replace(/\r/g, ''); + if (projection.toLowerCase().startsWith("epsg:")){ projection = projection.replace(/^EPSG:/ig, ''); }