Make route organization RESTful

This commit is contained in:
Alexis Sellier
2021-05-19 12:15:49 +02:00
parent 73b00be0af
commit b61c336dca
19 changed files with 66 additions and 43 deletions
+1 -1
View File
@@ -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}$`), "");