diff --git a/station.js b/station.js index 9ae78f2..7d65211 100755 --- a/station.js +++ b/station.js @@ -11,11 +11,11 @@ function goToStation(station) { function searchNormalize(str) { return str .toLowerCase() - .replace('ă', 'a') - .replace('â', 'a') - .replace('î', 'i') - .replace('ș', 's') - .replace('ț', 't') + .replaceAll('ă', 'a') + .replaceAll('â', 'a') + .replaceAll('î', 'i') + .replaceAll('ș', 's') + .replaceAll('ț', 't') } var focusedElement = null