Skip to content

Commit

Permalink
lowercase field names before checking for '_url' suffix
Browse files Browse the repository at this point in the history
extra_urls() filter will now match Foo_Url as well as foo_url
  • Loading branch information
ransford committed Feb 2, 2015
1 parent fd0ba02 commit 53b13ce
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions bibble.py
Expand Up @@ -87,6 +87,7 @@ def _extra_urls(entry):
"""
urls = {}
for k, v in entry.fields.iteritems():
k = k.lower()
if not k.endswith('_url'):
continue
k = k[:-4]
Expand Down

1 comment on commit 53b13ce

@sampsyo
Copy link
Owner

@sampsyo sampsyo commented on 53b13ce Feb 2, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart guy. ✨

Please sign in to comment.