🌐 Improve Google Maps variants and protocol-less URL parsing

This commit is contained in:
itskovacs 2025-07-19 13:16:11 +02:00
parent a53e18d024
commit c1ad390194
2 changed files with 4 additions and 2 deletions

View File

@ -1 +1 @@
__version__ = "1.1.0"
__version__ = "1.1.1"

View File

@ -103,7 +103,9 @@ export class PlaceCreateModalComponent {
this.placeForm.get("place")?.valueChanges.subscribe({
next: (value: string) => {
if (value.startsWith("https://www.google.com/maps")) {
const isGoogleMapsURL =
/^(https?:\/\/)?(www\.)?google\.[a-z.]+\/maps/.test(value);
if (isGoogleMapsURL) {
this.parseGoogleMapsUrl(value);
}
},