Skip to content

Commit

Permalink
Update src/Migration/Sources/Firebase.php
Browse files Browse the repository at this point in the history
  • Loading branch information
abnegate authored Aug 31, 2023
1 parent a0e8165 commit 8941752
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Migration/Sources/Firebase.php
Original file line number Diff line number Diff line change
Expand Up @@ -478,6 +478,7 @@ private function convertDocument(Collection $collection, array $document): Docum

$documentId = explode('/', $document['name']);
$documentId = end($documentId);
// Strip non-alphanumeric except underscore and hyphen
$documentId = preg_replace("/[^A-Za-z0-9\_\-]/", '', $documentId);
$documentId = strtolower($documentId);

Expand Down

0 comments on commit 8941752

Please sign in to comment.