From 2511c52d9452f60c533871ac111ba9473065310c Mon Sep 17 00:00:00 2001 From: stuebinm Date: Sat, 20 Nov 2021 02:30:20 +0100 Subject: make link adjustments configurable this allows for creating custom URI "schemas" in the linter's config, which may be either allowed, prefixed, or translated according to some (domain-based) substitution. --- config.json | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) (limited to 'config.json') diff --git a/config.json b/config.json index 32f566f..b955e01 100644 --- a/config.json +++ b/config.json @@ -4,7 +4,19 @@ "AllowScripts":true, "MaxLintLevel":"Fatal", "DontCopyAssets":true, - "LinkPrefix":"https://exit.rc3.world?link=", - "AllowedDomains":["example.org"], - "BlockedDomains":[] + "UriSchemas": { + "https" : { + "scope" : ["website"], + "allowed" : ["example.org"], + "blocked" : ["blocked.com"], + "prefix" : "https://ausgang.rc3.world?link=" + }, + "world" : { + "scope" : ["map"], + "substs" : { + "lounge" : "/@/lalala", + "lobby" : "/@/lounge" + } + } + } } -- cgit v1.2.3