Skip to content

Commit

Permalink
Merge pull request w3c#139 from mikewest/spec-attribute
Browse files Browse the repository at this point in the history
Autolinking: Ignore case when procesing the 'spec' attribute.
  • Loading branch information
tabatkins committed May 16, 2014
2 parents b599b02 + 4f75687 commit 5a6946f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bikeshed/ReferenceManager.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ def getRef(self, linkType, text, spec=None, status=None, linkFor=None, error=Tru

# If spec is specified, kill anything that doesn't match
if spec is not None:
refs = [ref for ref in refs if ref['shortname']==spec or ref['spec']==spec]
refs = [ref for ref in refs if ref['shortname'].lower() == spec.lower() or ref['spec'].lower() ==spec.lower()]
if len(refs) == 0:
if zeroRefsError:
die("No '{0}' refs found for '{1}' with spec '{2}'.", linkType, text, spec)
Expand Down

0 comments on commit 5a6946f

Please sign in to comment.