Skip to content

Commit

Permalink
charges
Browse files Browse the repository at this point in the history
  • Loading branch information
aymericdo committed Nov 11, 2024
1 parent 31b77af commit e6b1b1c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/services/helpers/regex.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ export const regexString = (value: string): string => {
furnished: /(?<!(non-|non ))\bmeuble/g,
nonFurnished: /(non-|non )\bmeuble/g,
charges:
/((?<=(charges locatives |charges |charge )(\D{0,4}))|(?<=\d{3,4}((|\.|,)\d{1,2})?(\D{0,5})?\+ ?))(\d{2,3}((|\.|,)\d{1,2})?)(?=( ?euros\b| ?| ?e\b| ?eur\b| ?euro\b | ?de\b ?(charge(s)?)\b))/g,
/((?<=((?<! hors )charges locatives |(?<! hors )charges |(?<! hors )charge )(\D{0,4}))|(?<=\d{3,4}((|\.|,)\d{1,2})?(\D{0,5})?\+ ?))(\d{2,3}((|\.|,)\d{1,2})?)(?=( ?euros\b| ?| ?e\b| ?eur\b| ?euro\b | ?de\b ?(charge(s)?)\b))/g,
hasCharges: /prix charge[s]? comprise[s]?/g,
surface: /(?<=[^0-9])(9|\d{2}((|\.|,)\d{1,2})?)(?= ?(m2\b|metre|m²))/g,
surface: /((9|\d{2})((|\.|,)\d{1,2})?)(?= ?(m2\b|metre|m²))/g,
isHouse: /maison/g,
particulier: /particulier/g,
}
Expand Down

0 comments on commit e6b1b1c

Please sign in to comment.