Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

adjust regex in duplicate check #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

ProxiBlue
Copy link

The regex used to find duplicate url_keys are giving false positives if the given url_key ends in -[number]

for example:

19th-century-filipino-basket-with-lid-acc-7311-5219 would result in 19th-century-filipino-basket-with-lid-acc-7311-5219-1.html as the request url.

…, but a dashed -X digit - prevents urls keys ending in -XXXXX to be thought of as duplicates
@infabo
Copy link

infabo commented Apr 12, 2017

LGTM. +1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants