Skip to content

Regex not recognize filenames with extra dot in it #59

@alex1704

Description

@alex1704

File example:

<html>
<body>
<script src="some-name.anotherone.js"></script>
</body>
</html>

Command:
python linkfinder.py -i s.html -o cli
outputs nothing
Solution:
Changing reqular expression by adding dot to filename regex.
from:
([a-zA-Z0-9_\-]{1,} # filename
to:
([a-zA-Z0-9_\-.]{1,} # filename

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions