Skip to content

Commit

Permalink
Possible correction to carrismetropolitana/gtfs#266
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardojorgerm authored Mar 20, 2024
1 parent 798bd46 commit c5d1bf0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions services/makeTTS.js
Original file line number Diff line number Diff line change
Expand Up @@ -255,12 +255,12 @@ module.exports = (p, modes = {}) => {
thisString = thisString.replace(regex, 'Calçada ');
regex = /\s(Mun[i]?[c]?(?![í])[i]?(p)?[\.]?)\b/giu;
thisString = thisString.replace(regex, ' Municipal');
regex = /\bCam[\s]+(?!M)/giu;
thisString = thisString.replace(regex, 'Caminho ');
regex = /\b([C][a]?[m]?[\s]?M[u]?[n]?)[\s]*(?=[\d])/giu;
thisString = thisString.replace(regex, 'Caminho Municipal ');
regex = /\b([C][aâ]?[m]?[\s]*M[u]?[n]?)(\s|$)/giu;
thisString = thisString.replace(regex, 'Câmara Municipal ');
regex = /\bCam[\s]+(?!M)/giu;
thisString = thisString.replace(regex, 'Caminho ');
regex = /\sM([\d]{3})\b/giu;
thisString = thisString.replace(regex, ' Municipal $1');
regex = /(\s|^)(F[aá]b[r]?[\.]?)(\s|$)/giu;
Expand Down

0 comments on commit c5d1bf0

Please sign in to comment.