optimise single dot detection
authorJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 17:36:00 +0000 (13:36 -0400)
committerJoey Hess <joey@kitenet.net>
Mon, 30 Aug 2010 17:36:00 +0000 (13:36 -0400)
commit991d01f5b53250b962725110903b0324c93fbfb6
tree77f5bad195b6659423f1bfb14a725ca17cba7765
parent7d1cc3a0209980bdbec59ffd0b6171898a1cc066
optimise single dot detection

Since it already looks for things starting with a dot, I was able to avoid
matching against the string twice.

This also fixes a minor bug; $from may not be defined. Avoid uninitialized
value warnings in this case.
IkiWiki.pm