feat: support department location selector in leboncoin (#5073)

Co-authored-by: gileri <e+git8413@linuxw.info>
This commit is contained in:
Eric G
2020-06-28 11:29:27 +08:00
committed by GitHub
co-authored by gileri
parent 9e7aefde9c
commit d9d3bf0bce
+4
View File
@@ -31,6 +31,10 @@ const convertQueryToFilters = (query) => {
return { locationType: 'department_near', department_id: l.slice(3) };
}
if (l.startsWith('d_')) {
return { locationType: 'department', department_id: l.slice(2) };
}
{
if (l.match(/.+_.+/)) {
const [city, zipcode] = l.split('_');