You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where the trimmed pattern is changed from / to empty string and then trimedPattern[0:1] tries to reference outside the string length.
Not sure what the resolution for this is? Should it ignore the pattern? Return an error? I am not familiar enough with the semantics of .gitignore files to comment sorry.
If go-gitignore is supplied with a gitignore that consists of a single character
/
then it will panic with the following,this is due to the following code inside
inital_holder.go
Where the trimmed pattern is changed from
/
to empty string and thentrimedPattern[0:1]
tries to reference outside the string length.Not sure what the resolution for this is? Should it ignore the pattern? Return an error? I am not familiar enough with the semantics of .gitignore files to comment sorry.
Relates to boyter/scc#149
The text was updated successfully, but these errors were encountered: