refactor miner name truncation

This commit is contained in:
Mononaut committed 2024-09-26 17:18:49 +00:00
1 parent 1f84e1722f
commit b29c4cf228
9 files changed
+53 -86

No files matched your search

+1 -1
View File
@@ -223,5 +223,5 @@ export function parseDATUMTemplateCreator(coinbaseRaw: string): string[] | null
let tagString = String.fromCharCode(...tags);
tagString = tagString.replace('\x00', '');
return tagString.split('\x0f');
return tagString.split('\x0f').map((name) => name.replace(/[^a-zA-Z0-9 ]/g, ''));
}