Return True if file is a JavaScript file.
(self)
| 513 | return not (self.is_documentation_page() or self.is_static_page()) |
| 514 | |
| 515 | def is_javascript(self) -> bool: |
| 516 | """Return True if file is a JavaScript file.""" |
| 517 | return self.src_uri.endswith(('.js', '.javascript', '.mjs')) |
| 518 | |
| 519 | def is_css(self) -> bool: |
| 520 | """Return True if file is a CSS file.""" |
no outgoing calls