mirror of
https://seed.radicle.dev/rad:z4V1sjrXqjvFdnCUbxPFqd5p4DtH5.git
synced 2026-11-29 02:00:31 +08:00
Make route organization RESTful
This commit is contained in:
+1
-1
@@ -19,7 +19,7 @@ export function capitalize(s: string) {
|
||||
|
||||
// Takes a domain name, eg. 'cloudhead.radicle.eth' and
|
||||
// returns the label, eg. 'cloudhead', otherwise `null`.
|
||||
export function parseEnsLabel(name: string, config: Config): string | null {
|
||||
export function parseEnsLabel(name: string, config: Config): string {
|
||||
let domain = config.registrar.domain.replace(".", "\\.");
|
||||
let label = name.replace(new RegExp(`\\.${domain}$`), "");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user