Task #3229
Updated by Venmuhilan B about 1 year ago
*IF* the "copilot_urls" field is present in the datastore, and the requested "o-url" is neither a prefix in any of the "copilot_urls" nor found within "copilot_urls," then *set "showCopilot" to false.* *ELSE* Set "showCopilot" as true for all the 3 existing cases - https://docs.google.com/document/d/1uMTr3gKDf_XxMZse9j0ys-XwTEzM32TJwDH31SAiVA0/edit#heading=h.28q2j3w7old3 Handle this for 0.95 and later versions *Support : Implement Copilot URL Wildcard Matching* For the given Copilot URL pattern: "copilot_urls": ["scikit-learn.org/*blog*"], ["scikit-learn.org/*\blog\*"], If the copilot url contains * then check if it is matching with the requested Ourl. If the requested OURL is http://scikit-learn.org/modulesblog/1/2/3 or https://scikit-learn.org/1/2/3/4blog5 the matching should result in "showCopilot": true.