Skip to content

Filename with well-known extension match #25

@irsdl

Description

@irsdl

Currently it detects the full filename when it is in the dictionary. However, we might have the filename in the dictionary but with a different extension. Now the extension might be easy enough to guess such as ASP which can potentially be ASPX.

It would be great to be able to enable mix matching between filename and well known extensions via an argument.

Imagine we have a dictionary that can give us this result:

WEB~1.CON            WEB.CON?
TEST~1.SOA           TEST.SOA?
REDIRE~1.ASP         REDIRE?.ASP?        REDIRECT.ASPX
ZZZ_DO~1.ASP         ZZZ_DO?.ASP?
ZZZ_DO~1.HTM         ZZZ_DO?.HTM?        ZZZ_DONATE_BOX.HTML
DEFAUL~1.ASP         DEFAUL?.ASP?        DEFAULT2.ASPX
MOBILE~1.ASP         MOBILE?.ASP?        MOBILE.ASPX
DEFAUL~2.ASP         DEFAUL?.ASP?        DEFAULT.ASPX

It misses on these:

TEST~1.SOA           TEST.SOA?
ZZZ_DO~1.ASP         ZZZ_DO?.ASP?

TEST which is not shortened use a well known .SOAP extension which could be tried.
ZZZ_DO~1 file name is already in our dictionary as it managed to find ZZZ_DONATE_BOX.HTML when the extension matched too. However, it is also using a well known extension .ASPX which could have been tried to see whether it is actually there.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions