Skip to content

Commit 394fd33

Browse files
committed
handle yandex maps on .com domain
1 parent 3992061 commit 394fd33

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

plugins/domains/maps.yandex.ru/maps.yandex.ru.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import * as URL from "url";
22

33
export default {
44

5-
re: /^https:\/\/yandex\.ru\/maps\//,
5+
re: /^https:\/\/yandex\.(ru|com)\/maps\//,
66

77
mixins: [
88
// "*" // Captcha :\
@@ -53,7 +53,8 @@ export default {
5353
noFeeds: true
5454
},
5555
"https://yandex.ru/maps/10738/lubercy/?ll=37.894794%2C55.685214&z=14",
56-
"https://yandex.ru/maps/?ll=36.997338%2C55.519264&z=14"
56+
"https://yandex.ru/maps/?ll=36.997338%2C55.519264&z=14",
57+
"https://yandex.com/maps/213/moscow/?ll=37.624027%2C55.753512&mode=search&poi%5Bpoint%5D=37.621584%2C55.753461&poi%5Buri%5D=ymapsbm1%3A%2F%2Forg%3Foid%3D10661349235&sctx=ZAAAAAgBEAAaKAoSCfFmDd5XtSVAEXmxMEROl0hAEhIJvTeGAODDUEARCOdTxyppQkAiBgABAgMEBSgKOABA3K0HSAFiR3JlYXJyPXNjaGVtZV9Mb2NhbC9HZW91cHBlci9BZHZlcnRzL1JlYXJyYW5nZUJ5QXVjdGlvbi9DYWNoZS9Ub3BMaW1pdD0zYkZyZWFycj1zY2hlbWVfTG9jYWwvR2VvdXBwZXIvQWR2ZXJ0cy9SZWFycmFuZ2VCeUF1Y3Rpb24vQ2FjaGUvRW5hYmxlZD0xagV3b3JsZJ0BzczMPaABAKgBAL0Bis6xfsIBEK%2FV%2BucDsLb2uASh5K7VxQSCAgdrcmVtbGluigIAkgIAmgIMZGVza3RvcC1tYXBz&sll=37.624027%2C55.753512&sspn=0.013025%2C0.006123&text=kremlin&utm_source=share&z=16"
5758
]
5859

5960
};

plugins/domains/maps.yandex.ru/maps.yandex.ru.short.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
export default {
22

3-
re: /^https:\/\/yandex\.ru\/maps\/-\//,
3+
re: /^https:\/\/yandex\.(ru|com)\/maps\/-\//,
44

55
mixins: [
66
// "*" //Captcha :\
@@ -16,6 +16,7 @@ export default {
1616
},
1717

1818
tests: [
19-
"https://yandex.ru/maps/-/CWS~5QYp"
19+
"https://yandex.ru/maps/-/CWS~5QYp",
20+
"https://yandex.com/maps/-/CLu~B4po"
2021
]
2122
};

0 commit comments

Comments
 (0)