File tree Expand file tree Collapse file tree 3 files changed +457
-152
lines changed Expand file tree Collapse file tree 3 files changed +457
-152
lines changed Original file line number Diff line number Diff line change @@ -126,7 +126,14 @@ public static function getEtagRegex(): string {
126126 * @return string
127127 */
128128 public static function getFederatedUserRegex (): string {
129- return '^(?:[A-Za-z0-9+/]{4})*(?:[A-Za-z0-9+/]{2}==|[A-Za-z0-9+/]{3}=|[A-Za-z0-9+/]{4})$ ' ;
129+ return '(?=(.{4})*$)[A-Za-z0-9+/]*={0,2}$ ' ;
130+ }
131+
132+ /**
133+ * @return string
134+ */
135+ public static function getFederatedFileIdRegex (): string {
136+ return self ::getSpaceIdRegex () . '!(?=(.{4})*$)[A-Za-z0-9+/]*={0,2} ' ;
130137 }
131138
132139 /**
Original file line number Diff line number Diff line change @@ -2339,6 +2339,14 @@ public function substituteInLineCodes(
23392339 ],
23402340 "parameter " => []
23412341 ],
2342+ [
2343+ "code " => "%federated_file_id_pattern% " ,
2344+ "function " => [
2345+ __NAMESPACE__ . '\TestHelpers\GraphHelper ' ,
2346+ "getFederatedFileIdRegex "
2347+ ],
2348+ "parameter " => []
2349+ ],
23422350 [
23432351 "code " => "%group_id_pattern% " ,
23442352 "function " => [
You can’t perform that action at this time.
0 commit comments