File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change 3
3
4
4
# Change this value when updating your code base.
5
5
# Define the version of the webgenie.
6
- __VERSION__ = "1.1.17 " # version
6
+ __VERSION__ = "1.1.18 " # version
7
7
8
8
SPEC_VERSION = (
9
9
(1000 * int (__VERSION__ .split ("." )[0 ]))
Original file line number Diff line number Diff line change @@ -29,6 +29,8 @@ def is_valid_resources(html_content: str) -> bool:
29
29
r"https?://stackpath.bootstrapcdn.com/bootstrap/[^/]+/css/bootstrap.min.css" ,
30
30
r"https?://code.jquery.com/jquery-[^/]+.min.js" ,
31
31
r"https?://stackpath.bootstrapcdn.com/bootstrap/[^/]+/js/bootstrap.bundle.min.js" ,
32
+ r"https?://cdnjs.cloudflare.com/ajax/libs/font-awesome/[^/]+/css/font-awesome.min.css" ,
33
+ r"https?://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;700&display=swap" ,
32
34
]
33
35
34
36
soup = BeautifulSoup (html_content , 'html.parser' )
@@ -38,11 +40,11 @@ def is_valid_resources(html_content: str) -> bool:
38
40
if resource .name == 'link' and resource .get ('rel' ) == ['stylesheet' ]:
39
41
href = resource .get ('href' )
40
42
if href and not any (re .match (pattern , href ) for pattern in allowed_patterns ):
41
- return False
43
+ return True
42
44
elif resource .name == 'script' :
43
45
src = resource .get ('src' )
44
46
if src and not any (re .match (pattern , src ) for pattern in allowed_patterns ):
45
- return False
47
+ return True
46
48
47
49
return True
48
50
You can’t perform that action at this time.
0 commit comments