Project

General

Profile

Feature #3336

Support for exclusions for copilot url

Added by Ram Kordale about 1 year ago. Updated 11 months ago.

Status:
Closed
Priority:
Urgent
Assignee:
Target version:
Start date:
11/22/2023
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

Description

Today, the user can add "<regex>" to list of regexes and if these regexes are present in the requested o-url, showCopilot is returned as true in the API response.

Please add support for user to add "-<regex>" to the list. In this case, if this regex is present in the requested o-url, showCopilot should be returned as false in the API response.

So, example could be ["*007*", "-/", "-/pricing", "-/about", "-/contact", "-/blog*", "-/*badminton*"]. In this case, showCopilot would be returned as false for
-fqdnp/
-fqdnp/pricing
-fqdnp/about
-fqdnp/contact
-fqdnp/blog
-fqdnp/blog123
-fqdnp/top-5-best-badminton-racket-under-1500-playos-ultimate-guide/
-fqdnp/classes/objects/blog123

but true for
-fqdnp/classes/what007/modules
-fqdnp/blog007
-fqdnp/blog-what-is-ai-007

[Note : if both "-<regex>" and "*<regex>*" are present in the URL, and we can prioritize "*<regex>*" over "-<regex>" and return true based on the "*<regex>*" condition.]

where fqdnp is meant to be http://domainName or https://domainName.

Also available in: Atom PDF