diff --git a/handshake-api/index.js b/handshake-api/index.js index 896514fb..24f7347a 100644 --- a/handshake-api/index.js +++ b/handshake-api/index.js @@ -19,8 +19,7 @@ const clientOptions = { }; const client = new NodeClient(clientOptions); -// Match both `sia://HASH` and `HASH` links. -const startsWithSkylinkRegExp = /^(sia:\/\/){0,1}[a-zA-Z0-9_-]{46}/; +const startsWithSkylinkRegExp = /^sia:\/\/[a-zA-Z0-9_-]{46}/; const getDomainRecords = async (name) => { const response = await client.execute("getnameresource", [name]);