MCPcopy Create free account
hub / github.com/VCVRack/Rack / isSlugValid

Function isSlugValid

src/plugin.cpp:495–501  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

493
494
495bool 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
504std::string normalizeSlug(const std::string& slug) {

Callers 2

fromJsonMethod · 0.85
json_array_foreachFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected