Normalize parenthesis if either opening or closing, not necessarily both
This commit is contained in:
@@ -26,7 +26,7 @@ trait ProjectsPumpTrait
|
||||
}
|
||||
|
||||
// Normalize parenthesis
|
||||
if (\str_contains($location, '(') && \str_contains($location, ')')) {
|
||||
if (\str_contains($location, '(') || \str_contains($location, ')')) {
|
||||
$location = \str_replace('(', ',', $location);
|
||||
$location = \str_replace(')', '', $location);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user