apply the match pattern in cfignore in order

[Finishes #67413512]