From 6c3f879126114670fc6f36777129075978c2262a Mon Sep 17 00:00:00 2001 From: Gokulakrishna Date: Wed, 16 May 2018 19:13:35 +0530 Subject: Added a pattern description field in redirector. --- redirector.html | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/redirector.html b/redirector.html index 0285e00..7f04b68 100644 --- a/redirector.html +++ b/redirector.html @@ -46,7 +46,11 @@
{{redirect.patternType == 'W' ? 'Wildcard' : 'Regular Expression'}} -
+ +
+ + {{redirect.patternDesc}} +
Yes, delete it No, don't delete it @@ -83,6 +87,10 @@ Regular Expression
+
+ +
+
{{redirect.error}}{{redirect.exampleResult}}
@@ -166,6 +174,9 @@

{{r.excludePattern}}

+
+

{{r.patternDesc}}

+

{{r.error}}{{r.exampleUrl}} {{r.exampleResult}}

-- cgit v1.2.3 From 97631f0a8a17ad72ecd5cbdd4a5ece5dfaa3815a Mon Sep 17 00:00:00 2001 From: Gokulakrishna Date: Wed, 16 May 2018 19:15:38 +0530 Subject: Added patternDesc field to prototype and initialization --- js/redirect.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/js/redirect.js b/js/redirect.js index 83681fc..3b772b8 100644 --- a/js/redirect.js +++ b/js/redirect.js @@ -33,6 +33,7 @@ Redirect.prototype = { error : null, includePattern : '', excludePattern : '', + patternDesc:'', redirectUrl : '', patternType : '', processMatches : 'noProcessing', @@ -56,6 +57,7 @@ Redirect.prototype = { && this.exampleUrl == redirect.exampleUrl && this.includePattern == redirect.includePattern && this.excludePattern == redirect.excludePattern + && this.patternDesc == redirect.patternDesc && this.redirectUrl == redirect.redirectUrl && this.patternType == redirect.patternType && this.processMatches == redirect.processMatches @@ -70,6 +72,7 @@ Redirect.prototype = { error : this.error, includePattern : this.includePattern, excludePattern : this.excludePattern, + patternDesc : this.patternDesc, redirectUrl : this.redirectUrl, patternType : this.patternType, processMatches : this.processMatches, @@ -208,6 +211,7 @@ Redirect.prototype = { this.excludePattern = o.excludePattern || ''; this.redirectUrl = o.redirectUrl || ''; this.patternType = o.patternType || Redirect.WILDCARD; + this.patternDesc = o.patternDesc || ''; this.processMatches = o.processMatches || 'noProcessing'; if (!o.processMatches && o.unescapeMatches) { this.processMatches = 'urlDecode'; -- cgit v1.2.3