Merge remote-tracking branch 'origin/master'
This commit is contained in:
@@ -260,6 +260,18 @@ func normalizeBedenLabelGo(v string) string {
|
||||
// 2️⃣ Uppercase
|
||||
s = strings.ToUpper(s)
|
||||
|
||||
// Yas bedenleri: 2Y / 2YAS / 2YAŞ -> 2
|
||||
for _, suf := range []string{"YAS", "YAŞ", "Y"} {
|
||||
if strings.HasSuffix(s, suf) {
|
||||
num := strings.TrimSpace(strings.TrimSuffix(s, suf))
|
||||
if num != "" {
|
||||
if _, err := strconv.Atoi(num); err == nil {
|
||||
return num
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* --------------------------------------------------
|
||||
🔥 AKSBİR ÖZEL (STD eş anlamlıları)
|
||||
-------------------------------------------------- */
|
||||
|
||||
Reference in New Issue
Block a user