Skip to content

Commit

Permalink
fix: add addressmatch extensions
Browse files Browse the repository at this point in the history
  • Loading branch information
emalfroy committed Nov 17, 2023
1 parent 6123621 commit fcc50df
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/AddressRegistry.Api.Oslo/AddressMatch/Extensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ public static string ToggleAbbreviations(this string input)
if (input.Contains("o.l.v."))
return input.Replace("o.l.v.", "Onze Lieve Vrouw");

if (input.Contains("onze-lieve-"))
return input.Replace("onze-lieve-", "O.L. ");

if (input.Contains("sint"))
return input.Replace("sint", "st.");

Expand Down Expand Up @@ -78,6 +81,15 @@ public static string ToggleAbbreviations(this string input)
if (input.EndsWith("str."))
return input.Replace("str.", "straat");

if (input.StartsWith("heilige"))
return input.Replace("heilige", "h");

if (input.StartsWith("heilig"))
return input.Replace("heilig", "h");

if (input.StartsWith("k."))
return input.Replace("k.", "koning");

return input;
}
}
Expand Down

0 comments on commit fcc50df

Please sign in to comment.