There was an error while loading. Please reload this page.
1 parent e1be182 commit 6fe7472Copy full SHA for 6fe7472
1 file changed
lib/Service/MetadataService.php
@@ -85,7 +85,8 @@ public function getEnrichedProviders(): array {
85
}
86
87
private function getIdFromSource(string $sourceId): string {
88
- if (!preg_match('/^[^: ]+__[^: ]+: (\d+)$/', $sourceId, $matches)) {
+ // note the ":" in the item id part
89
+ if (!preg_match('/^[a-zA-Z0-9_-]+__[a-zA-Z0-9_-]+: ([a-zA-Z0-9:-])+$/', $sourceId, $matches)) {
90
throw new \InvalidArgumentException("Invalid source id $sourceId");
91
92
return $matches[1];
0 commit comments