Skip to content

Commit fde0de3

Browse files
committed
check for multiple permission strings
1 parent 8ebe19c commit fde0de3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SDK/Language.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ protected function toUpperSnakeCase($str): string
140140

141141
public function isPermissionString(string $string): bool
142142
{
143-
$pattern = '/^\["(read|update|delete|write)\(\\"[^\\"]+\\"\)"\]$/';
143+
$pattern = '/^\[("(read|update|delete|write)\(\\"[^\\"]+\\"\)"(,\s*)?)+\]$/';
144144
return preg_match($pattern, $string) === 1;
145145
}
146146

0 commit comments

Comments
 (0)