Skip to content

Commit

Permalink
Merge pull request #35 from aalok-sathe/patch-1
Browse files Browse the repository at this point in the history
allow periods in filepath by making isHTML? checks smarter
  • Loading branch information
Giancarlo Perrone committed Jul 9, 2019
2 parents 8773ed9 + 9956e1b commit d07769b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pyvis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@ def check_html(name):
:param: name: the name to check
:type name: str
"""
assert len(name.split(".")) == 2, "invalid file type for %s" % name
assert len(name.split(".")) >= 2, "invalid file type for %s" % name
assert name.split(
".")[1] == "html", "%s is not a valid html file" % name
".")[-1] == "html", "%s is not a valid html file" % name

0 comments on commit d07769b

Please sign in to comment.