Closed zw963 closed 3 years ago
@zw963 That regexp looks a bit more general than the 2 examples you show, because it would also match #app.rb
.
Does this pattern look accurate to match exactly those 2 cases? /\A.#|\A#.*#\z/
?
Could you please make a PR with this change, along with specs?
That regexp looks a bit more general than the 2 examples you show
Yes, /\A\.?#/
is a little general (though, this is my original purpose)
I just want ignore any file which prefix with .#
or #
, if you favor more accurate, i can exact file name like (?:^\.#|^#.+#$)
, will create PR later.
@ColinDKelley PR, #546 , thank you.
Emacs will generate some temp files before save, e.g.
.#app.rb
,#app.rb#
.So, i thought we should add those rarely used filename to ignore list. like this: