🌐 Improve Google Maps variants and protocol-less URL parsing
This commit is contained in:
parent
a53e18d024
commit
c1ad390194
@ -1 +1 @@
|
||||
__version__ = "1.1.0"
|
||||
__version__ = "1.1.1"
|
||||
|
||||
@ -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);
|
||||
}
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user