Fixed the RE that checks whether a font name is actually a file name.
authorTilman Sauerbeck <tilman@code-monkey.de>
Thu, 14 Apr 2005 19:47:06 +0000 (19:47 +0000)
committerTilman Sauerbeck <tilman@code-monkey.de>
Thu, 14 Apr 2005 19:47:06 +0000 (19:47 +0000)
ChangeLog
lib/redact/part.rb

index 92dd4eccde2f55af69550970c60f11d1ecde9d58..9c7f873b09e24148b5922199aa02fd63fe00febe 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,11 +1,13 @@
 --
-$Id: ChangeLog 26 2005-04-14 19:44:49Z tilman $
+$Id: ChangeLog 27 2005-04-14 19:47:06Z tilman $
 ++
 
 2005-04-14 Tilman Sauerbeck (tilman at code-monkey de)
         * lib/{redact,part,program}.rb: Replaced most attr_accessor
           calls by explicit setter methods to ensure type safety
         * lib/part.rb: Code cleanup
+        * lib/part.rb: Fixed the regular expression that checks
+          whether a font name is actually a filename
 
 2005-04-09 Tilman Sauerbeck (tilman at code-monkey de)
         * test/crossfade.rb: Updated for recent tween mode fixes
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?