feat: support department location selector in leboncoin (#5073)
Co-authored-by: gileri <e+git8413@linuxw.info>
This commit is contained in:
parent
9e7aefde9c
commit
d9d3bf0bce
|
|
@ -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('_');
|
||||
|
|
|
|||
Loading…
Reference in New Issue