mirror of
https://github.com/Hopiu/linkchecker.git
synced 2026-04-25 00:24:45 +00:00
Fix css check
git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@3723 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
parent
1db747cb2a
commit
e266a65b64
1 changed files with 1 additions and 5 deletions
|
|
@ -189,11 +189,7 @@ class FileUrl (urlbase.UrlBase):
|
|||
"""
|
||||
Check if file is a CSS file.
|
||||
"""
|
||||
if PARSE_EXTENSIONS['css'].search(self.url):
|
||||
return True
|
||||
if PARSE_CONTENTS['css'].search(self.get_content()):
|
||||
return True
|
||||
return False
|
||||
return bool(PARSE_EXTENSIONS['css'].search(self.url))
|
||||
|
||||
def is_file (self):
|
||||
"""
|
||||
|
|
|
|||
Loading…
Reference in a new issue