isAlpha returns true if s is non-empty and all characters are lowercase letters.
(s string)
| 187 | |
| 188 | // isAlpha returns true if s is non-empty and all characters are lowercase letters. |
| 189 | func isAlpha(s string) bool { |
| 190 | if len(s) == 0 { |
| 191 | return false |
| 192 | } |
| 193 | for _, c := range s { |
| 194 | if c < 'a' || c > 'z' { |
| 195 | return false |
| 196 | } |
| 197 | } |
| 198 | return true |
| 199 | } |
| 200 | |
| 201 | // matchFullUUID checks if name starts with a full UUID (8-4-4-4-12 hex pattern). |
| 202 | // Returns the UUID, remaining slug, and whether it matched. |