]> granicus.if.org Git - file/commitdiff
Replace a regex with a search
authorReuben Thomas <rrt@sc3d.org>
Sun, 17 Feb 2008 19:22:47 +0000 (19:22 +0000)
committerReuben Thomas <rrt@sc3d.org>
Sun, 17 Feb 2008 19:22:47 +0000 (19:22 +0000)
magic/Magdir/c-lang
magic/Magdir/commands
magic/Magdir/sgml

index 343ef7f151bf07e1ab40c55afe3b575d7847751a..8893dabbaea7505e7f2def4db1129a219a625dad 100644 (file)
@@ -24,5 +24,5 @@
 # The inverted index functionality was added some time betwen
 # versions 11 and 15, so look for -q if version is above 14:
 >7     string          >14
->>10   regex           .+\ -q\         with inverted index
->10    regex           .+\ -c\         text (non-compressed)
+>>10   search/100      \ -q\           with inverted index
+>10    search/100      \ -c\           text (non-compressed)
index d42fbefe0187a58896f1192f33d116ae3157064c..78a07540e49d4f6d3be32f60e5b6cf9b57c575fb 100644 (file)
@@ -48,7 +48,7 @@
 !:mime application/x-awk
 # update to distinguish from *.vcf files
 # this is broken because postscript has /EBEGIN{ for example.
-#0     regex           BEGIN[[:space:]]*[{]    awk script text
+#0     search/Bb       BEGIN {                 awk script text
 
 # AT&T Bell Labs' Plan 9 shell
 0      string/b        #!\ /bin/rc     Plan 9 rc shell script text executable
index ccb5e37b5c6a5494b2afa002005c72ad58b892e2..778a0cb96960a406984ef991c307af183d9e1452 100644 (file)
@@ -1,8 +1,8 @@
 # Type:        SVG Vectorial Graphics
 # From:        Noel Torres <tecnico@ejerciciosresueltos.com>
-0      string  \<?xml\ version="
->15    string  >\0
->>23   regex   .*\<svg                 SVG Scalable Vector Graphics image
+0      string          \<?xml\ version="
+>15    string          >\0
+>>23   search/400      \<svg                   SVG Scalable Vector Graphics image
 !:mime image/svg+xml
 
 #------------------------------------------------------------------------------