Skip to content

Commit 5651e14

Browse files
fix: don't replace '.' for search-index when using resource-channel-anchor (#37)
1 parent fd2c8e9 commit 5651e14

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

src/SiteKitResourceChannelFactory.php

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,11 +52,8 @@ public function create(): ResourceChannel
5252

5353
$data = $this->loadContextPhpFile();
5454

55-
$searchIndex = str_replace(
56-
'.',
57-
'-',
58-
$data['publisher']['anchor'],
59-
);
55+
$searchIndex = $data['publisher']['anchor'];
56+
6057
return new ResourceChannel(
6158
(string) $data['publisher']['id'],
6259
$data['publisher']['name'],

0 commit comments

Comments
 (0)