scrapinghub/arche

Make json schema and python regex the same

Open

#92 opened on May 17, 2019

 (1 comment) (0 reactions) (0 assignees)Python (17 forks)auto 404
Type: Featuregood first issue

Repository metrics

Stars
 (47 stars)
PR merge metrics
 (PR metrics pending)

Description

There is some difference between schemas in files and dict. In particular, all \ in files should be double escaped, meaning we have this "^https?://www\\.realtor\\.ca/propertyDetails\\.aspx\\?PropertyId=[0-9]+$" While python jsons can eat "^https?://www.realtor.ca/propertyDetails.aspx?PropertyId=[0-9]+$` To promote healthy psyche, I think it makes sense to find a way if it can be consistent.

Contributor guide