diff --git a/requests_html.py b/requests_html.py
index 092fb2b..8435209 100644
--- a/requests_html.py
+++ b/requests_html.py
@@ -294,7 +294,7 @@ class BaseParser:
try:
href = link.attrs['href'].strip()
- if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith('javascript:') and not href.startswith('mailto:'):
+ if href and not (href.startswith('#') and self.skip_anchors) and not href.startswith(('javascript:', 'mailto:')):
yield href
except KeyError:
pass