Skip to content

Commit

Permalink
remove . in price
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdo committed Jan 13, 2024
1 parent da1e3cd commit 64c5698
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/services/websites/locservice/locservice.scrapping.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ export class LocserviceScrapping {
hasCharges: price?.textContent.includes('CC'),
description: description?.textContent,
furnished: furnished?.textContent.includes('Loué meublé'),
price: price && price.textContent,
price: price && price.textContent.replace('.', ''),
rooms: surface.textContent?.match(/\d+ pièce/g) && surface.textContent?.match(/\d+ pièce/g)[0],
surface: surface.textContent?.match(/\d+ m²/g) && surface.textContent?.match(/\d+ m²/g)[0],
title: title && title.textContent,
Expand Down

0 comments on commit 64c5698

Please sign in to comment.