| 493 | |
| 494 | |
| 495 | bool isSlugValid(const std::string& slug) { |
| 496 | for (char c : slug) { |
| 497 | if (!(std::isalnum(c) || c == '-' || c == '_')) |
| 498 | return false; |
| 499 | } |
| 500 | return true; |
| 501 | } |
| 502 | |
| 503 | |
| 504 | std::string normalizeSlug(const std::string& slug) { |
no outgoing calls
no test coverage detected