[Namazu-cvs 822] r258 - MMagic/trunk

cvsd @ vaj.namazu.org cvsd @ vaj.namazu.org
2006年 5月 23日 (火) 14:52:29 JST


Author: knok
Date: 2006-05-23 14:52:28 +0900 (Tue, 23 May 2006)
New Revision: 258

Modified:
   MMagic/trunk/ChangeLog
   MMagic/trunk/MMagic.pm
Log:
Changed regex for magic entry


Modified: MMagic/trunk/ChangeLog
===================================================================
--- MMagic/trunk/ChangeLog	2006-05-22 06:45:36 UTC (rev 257)
+++ MMagic/trunk/ChangeLog	2006-05-23 05:52:28 UTC (rev 258)
@@ -1,3 +1,8 @@
+2006-05-23  NOKUBI Takatsugu  <knok @ daionet.gr.jp>
+
+	* MMagic.pm (readMagicLine): Changed regex for magic entry.
+	  (Reported by Dylan Vanderhoof, thank you)
+
 2006-05-17  NOKUBI Takatsugu  <knok @ daionet.gr.jp>
 
 	* MMagic.pm: Added a new line at the end of file.

Modified: MMagic/trunk/MMagic.pm
===================================================================
--- MMagic/trunk/MMagic.pm	2006-05-22 06:45:36 UTC (rev 257)
+++ MMagic/trunk/MMagic.pm	2006-05-23 05:52:28 UTC (rev 258)
@@ -1168,7 +1168,7 @@
     # or hex offset or an indirect offset specified in parenthesis
     # like (x[.[bsl]][+-][y]), or a relative offset specified by &.
     # offtype : 0 = absolute, 1 = indirect, 2 = relative
-    if ($line =~ s/^>*([&\(]?[a-flsx\.\+\-\d]+\)?)\s+(\S+)\s+//) {
+    if ($line =~ s/^>*([&\(]?[a-fA-Flsx\.\+\-\d]+\)?)\s+(\S+)\s+//) {
 	($offset,$type) = ($1,$2);
 
 	if ($offset =~ /^\(/) {




Namazu-cvs メーリングリストの案内