Fixed the RE that checks whether a font name is actually a file name.
[redact.git] / lib / redact / part.rb
index c271fef5f27af986b572753ffa7ec000c8092377..cbf1b6a8fdae702fd43d1c49654dc7e32f5d100b 100644 (file)
@@ -1,5 +1,5 @@
 #--
-# $Id: part.rb 26 2005-04-14 19:44:49Z tilman $
+# $Id: part.rb 27 2005-04-14 19:47:06Z tilman $
 #
 # Copyright (c) 2005 Tilman Sauerbeck (tilman at code-monkey de)
 #
@@ -509,7 +509,7 @@ module Redact
 
                def font=(f)
                        f = f.to_str.strip
-                       md = f.match(/.*\.ttf/)
+                       md = f.match(/.*\.ttf$/)
                        unless md.nil?
                                found = EDJE.font_dir.find { |font| font.filename == f }
                                if found.nil?