Skip to content

Plugin breaks if the filename contains a number range #15

@pkrumins

Description

@pkrumins

Hi Andrew,

Thanks for creating this great plugin!

I was just using it on a file with a filename readme-2000-2010-2.md and the plugin broke. It thinks that all edits should happen on line 2000.

I experimented some more and it works if the filename is readme-2000.md but breaks again if it's readme-2000-2010.md.

Also, if the pathname contains a range but the filename does not, then sometimes it breaks the same way. At the moment, it looks like it breaks if the pathname contains a range only if it's using git grep.

Apparently, if there's something that looks like a number range in the pathname or filename, then something goes wrong.

I hope you can replicate it and fix it. Thanks once again.

Peter

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