зеркало из https://github.com/nextcloud/cookbook.git
Make space out of tabs by default
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
ed873c7c21
Коммит
fab0f497d6
|
@ -1245,11 +1245,12 @@ class RecipeService {
|
||||||
$str = str_replace(["\r", "\n"], ' ', $str);
|
$str = str_replace(["\r", "\n"], ' ', $str);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$str = str_replace("\t", ' ', $str);
|
||||||
|
$str = str_replace("\\", '_', $str);
|
||||||
|
|
||||||
// We want to remove forward-slashes for the name of the recipe, to tie it to the directory structure, which cannot have slashes
|
// We want to remove forward-slashes for the name of the recipe, to tie it to the directory structure, which cannot have slashes
|
||||||
if ($remove_slashes) {
|
if ($remove_slashes) {
|
||||||
$str = str_replace(["\t", "\\", "/"], '_', $str);
|
$str = str_replace('/', '_', $str);
|
||||||
} else {
|
|
||||||
$str = str_replace(["\t", "\\"], '_', $str);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$str = html_entity_decode($str);
|
$str = html_entity_decode($str);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче