Skip to content

Commit

Permalink
- Fixes issue scrapinghub#53
Browse files Browse the repository at this point in the history
Support '-' and '~' in spider names.
  • Loading branch information
duendex committed May 20, 2014
1 parent ee12471 commit 38b2ebd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion slyd/slyd/crawlerspec.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ def create_crawler_spec_resource(spec_manager):
return SpecResource(spec_manager)

# stick to alphanum . and _. Do not allow only .'s (so safe for FS path)
_INVALID_SPIDER_RE = re.compile('[^A-Za-z0-9._]|^\.*$')
_INVALID_SPIDER_RE = re.compile('[^A-Za-z0-9._\-~]|^\.*$')


def allowed_spider_name(name):
Expand Down

0 comments on commit 38b2ebd

Please sign in to comment.