tests: more checks

This commit is contained in:
Saw-jan
2024-12-09 15:08:22 +05:45
parent c6859cc9fb
commit ad2e310ec3
3 changed files with 483 additions and 178 deletions

View File

@@ -126,7 +126,14 @@ class GraphHelper {
* @return string
*/
public static function getFederatedUserRegex(): string {
return '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$';
return '(?=(.{4})*$)[A-Za-z0-9+/]*={0,2}$';
}
/**
* @return string
*/
public static function getFederatedFileIdRegex(): string {
return self::getSpaceIdRegex() . '!(?=(.{4})*$)[A-Za-z0-9+/]*={0,2}';
}
/**