Commit e666748
committed
Handle case-insensitive comparison of diacritics
NodeJS and Postgres differ in how they treat characters like diacritics
when lowercasing so we should always lowercase both sides of our
equality check in the same language.
An example to illustrate the differences:
```
+-------------+------------------------------+----------------+
| Environment | Operation | Result |
+-------------+------------------------------+----------------+
| Postgres | lower('BOGOTÁ, D.C.') | 'bogotÁ, d.c.' |
| NodeJS | 'BOGOTÁ, D.C.'.toLowerCase() | 'bogotá, d.c.' |
+-------------+------------------------------+----------------+
```1 parent e9afa9b commit e666748
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
| 162 | + | |
163 | 163 | | |
164 | 164 | | |
165 | 165 | | |
| |||
0 commit comments