mirror of
https://iceshrimp.dev/crimekillz/iceshrimp-161sh.git
synced 2024-11-24 04:59:06 +01:00
14148f6c4a
Resolve #7779
7 lines
244 B
TypeScript
7 lines
244 B
TypeScript
export function normalizeForSearch(tag: string): string {
|
|
// ref.
|
|
// - https://analytics-note.xyz/programming/unicode-normalization-forms/
|
|
// - https://maku77.github.io/js/string/normalize.html
|
|
return tag.normalize('NFKC').toLowerCase();
|
|
}
|