rename skydb:// to skyns://
This commit is contained in:
parent
1563296ef1
commit
12f1a6183f
|
@ -22,7 +22,7 @@ const cache = new NodeCache({ stdTTL: 300 }); // cache for 5 minutes
|
||||||
|
|
||||||
// Match both `sia://HASH` and `HASH` links.
|
// Match both `sia://HASH` and `HASH` links.
|
||||||
const startsWithSkylinkRegExp = /^(sia:\/\/)?[a-zA-Z0-9_-]{46}/;
|
const startsWithSkylinkRegExp = /^(sia:\/\/)?[a-zA-Z0-9_-]{46}/;
|
||||||
const registryEntryRegExp = /^skydb:\/\/(?<publickey>[a-zA-Z0-9%]+)\/(?<datakey>[a-zA-Z0-9%]+)$/;
|
const registryEntryRegExp = /^skyns:\/\/(?<publickey>[a-zA-Z0-9%]+)\/(?<datakey>[a-zA-Z0-9%]+)$/;
|
||||||
|
|
||||||
const getDomainRecords = async (name) => {
|
const getDomainRecords = async (name) => {
|
||||||
if (cache.has(name)) return cache.get(name);
|
if (cache.has(name)) return cache.get(name);
|
||||||
|
|
Reference in New Issue