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 05:29:27 +02:00 committed by GitHub
parent 9e7aefde9c
commit d9d3bf0bce
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

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('_');