12345678910111213141516171819202122 |
- // SPDX-FileCopyrightText: Adam Evyčędo
- //
- // SPDX-License-Identifier: AGPL-3.0-or-later
- package transformers
- import (
- "golang.org/x/text/transform"
- )
- //nolint:gochecknoglobals
- var TransformerNL transform.Transformer = Replace(func(r rune) []rune {
- switch r {
- case 'IJ':
- return []rune{'I', 'J'}
- case 'ij':
- return []rune{'i', 'j'}
- default:
- return []rune{r}
- }
- })
|