codeclimate-community / codeclimate-markdownlint

8 stars 3 forks source link

Engine fails when a file path contains a colon #11

Closed maxjacobson closed 8 years ago

maxjacobson commented 8 years ago

The problem is on this line:

 match_data = line.match(/(?<path>[^:]*):(?<line_number>\d+): (?<code>MD\d+) (?<description>.*)/)

specifically the [^:]* pattern, which stipulates that a file path is (translating from regex to English) anything except a colon

I think changing this to simply .* would work fine.