Skip to content

Commit 782b42c

Browse files
committed
Refactor: Make BloomFilter more generic
1 parent f38002c commit 782b42c

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

src/Elastic.Documentation.LegacyDocs/BloomFilter.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ private void Add(string item)
7979
/// <returns>False if the item is definitely not in the set, True if it might be.</returns>
8080
public bool Check(string item)
8181
{
82-
var itemBytes = Encoding.UTF8.GetBytes(item.Replace("/guide/en/", ""));
82+
var itemBytes = Encoding.UTF8.GetBytes(item);
8383
for (var i = 0; i < HashCount; i++)
8484
{
8585
var hash = GetHash(itemBytes, i);

src/Elastic.Documentation.LegacyDocs/PagesProvider.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public IEnumerable<string> GetPages() =>
1919
Directory.EnumerateFiles(Path.Combine(gitRepositoryPath, "html", "en"), "*.html", SearchOption.AllDirectories)
2020
.Select(i =>
2121
{
22-
var relativePath = Path.GetRelativePath(Path.Combine(gitRepositoryPath, "html", "en"), i).Replace('\\', '/');
22+
var relativePath = "/guide/" + Path.GetRelativePath(Path.Combine(gitRepositoryPath, "html"), i).Replace('\\', '/');
2323
return relativePath;
2424
});
2525
}
0 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)