ispras / web-scraper-chrome-extension

Web data extraction tool implemented as chrome extension
GNU Lesser General Public License v3.0
214 stars 68 forks source link

fix to validate URLs with date/numeric ranges #12

Closed mxsnq closed 4 years ago

mxsnq commented 4 years ago

Provided pattern only checks for valid URLs, so I made a simple fix to remove date and range specs before applying it. Possible improvements:

mxsnq commented 4 years ago

Rewrote this with try { new URL ... }, it matches date/numeric ranges in path