記事
en
Türkçe Slug Üretirken I/ı/İ/i Sorununu Çözmek
情報源: DEV Türkçe ·
Kısa özet: JavaScript'in varsayılan toLowerCase() davranışı Türkçede İSTANBUL kelimesini i̇stanbul , IĞDIR kelimesini iğdir yapar. turkce-slug , Türkçe harfleri açık kurallarla işleyen, sıfır runtime bağımlılıklı bir TypeScript paketi. 616.760 kelimede 0 hata. Sorun Türkçede dört I harfi vardır ve JavaScript'in locale'den bağımsız toLowerCase() / toUpperCase() davranışı bunları doğru yönetmez: " İSTANBUL " . toLowerCase (); // "i̇stanbul" (i + combining dot) " IĞDIR " . toLowerCase (); // "iğdir" (Türkçede "ığdır" olmalı) " istanbul " . toUpperCase (); // "ISTANBUL" (Türkçede "İSTANBUL" olmalı
関連する発見
-
剖析 Golang Bigcache 的极致性能优化
記事 · 编程沉思录
-
🎙️ 科技热文播报 - 2026-03-14
記事 · 北门清燕
-
Marc Andreessen on AI Winters and Agent Breakthroughs
記事 · Josherich的博客
-
Designing Data-intensive Applications with Martin Kleppmann
記事 · Josherich的博客
-
IR, E-Ink, and Avgas
記事 · Josherich的博客
-
No, those are not games
記事 · Josherich的博客