Updated docs
This commit is contained in:
parent
467121a70f
commit
0cb118b2a5
1 changed files with 1 additions and 6 deletions
|
@ -474,12 +474,7 @@ $utopia->get('/v1/open-api-2.json')
|
||||||
}
|
}
|
||||||
|
|
||||||
function fromCamelCaseToDash($input) {
|
function fromCamelCaseToDash($input) {
|
||||||
preg_match_all('!([A-Z][A-Z0-9]*(?=$|[A-Z][a-z0-9])|[A-Za-z][a-z0-9]+)!', $input, $matches);
|
return str_replace([' ', '_'], '-', strtolower(preg_replace('/([a-zA-Z])(?=[A-Z])/', '$1-', $input)));
|
||||||
$ret = $matches[0];
|
|
||||||
foreach ($ret as &$match) {
|
|
||||||
$match = $match == strtoupper($match) ? strtolower($match) : lcfirst($match);
|
|
||||||
}
|
|
||||||
return implode('-', $ret);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*$scopes = [
|
/*$scopes = [
|
||||||
|
|
Loading…
Reference in a new issue