зеркало из https://github.com/nextcloud/cookbook.git
Use underscores to prevent trailing dot in folder names
Signed-off-by: Christian Wolf <github@christianwolf.email>
This commit is contained in:
Родитель
58ca1270b4
Коммит
1a8d7219e4
|
@ -36,7 +36,7 @@ class RecipeNameHelper {
|
|||
$recipeName = preg_replace($pattern, '_', $recipeName);
|
||||
|
||||
if (strlen($recipeName) > 100) {
|
||||
$recipeName = substr($recipeName, 0, 97) . '...';
|
||||
$recipeName = substr($recipeName, 0, 97) . '___';
|
||||
}
|
||||
|
||||
return $recipeName;
|
||||
|
|
|
@ -30,9 +30,9 @@ class RecipeNameHelperFilter extends TestCase {
|
|||
'95 chars' => ["{$ninetyChars}12345", "{$ninetyChars}12345"],
|
||||
'99 chars' => ["{$ninetyChars}123456789", "{$ninetyChars}123456789"],
|
||||
'100 chars' => ["{$ninetyChars}1234567890", "{$ninetyChars}1234567890"],
|
||||
'101 chars' => ["{$ninetyChars}12345678901", "{$ninetyChars}1234567..."],
|
||||
'102 chars' => ["{$ninetyChars}123456789012", "{$ninetyChars}1234567..."],
|
||||
'105 chars' => ["{$ninetyChars}123456789012345", "{$ninetyChars}1234567..."],
|
||||
'101 chars' => ["{$ninetyChars}12345678901", "{$ninetyChars}1234567___"],
|
||||
'102 chars' => ["{$ninetyChars}123456789012", "{$ninetyChars}1234567___"],
|
||||
'105 chars' => ["{$ninetyChars}123456789012345", "{$ninetyChars}1234567___"],
|
||||
'special chars' => ['a/b:c?d!e"f|g\\h\'i^j&k#l', 'a_b_c_d_e_f_g_h_i_j_k_l'],
|
||||
];
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче