fix 'give' query and restore confirmClaim method

This commit is contained in:
2025-03-16 17:06:01 -06:00
parent a7b3548792
commit 6c538de762
2 changed files with 64 additions and 20 deletions

View File

@@ -99,6 +99,11 @@ export function numberOrZero(str: string): number {
return isNumeric(str) ? +str : 0;
}
/**
* from https://tools.ietf.org/html/rfc3986#section-3
* also useful is https://en.wikipedia.org/wiki/Uniform_Resource_Identifier#Definition
**/
export const isGlobalUri = (uri: string) => {
return uri && uri.match(new RegExp(/^[A-Za-z][A-Za-z0-9+.-]+:/));
};