| 192 | |
| 193 | |
| 194 | std::string normalizeSlug(const std::string& slug) { |
| 195 | std::string s; |
| 196 | for (char c : slug) { |
| 197 | if (!(std::isalnum(c) || c == '-' || c == '_')) |
| 198 | continue; |
| 199 | s += c; |
| 200 | } |
| 201 | return s; |
| 202 | } |
| 203 | |
| 204 | |
| 205 | std::vector<Plugin*> plugins; |