From fb2ab709b209fbf1899e5cd6a8d4bf0472d84a90 Mon Sep 17 00:00:00 2001 From: Reuben Thomas Date: Sun, 17 Feb 2008 19:22:47 +0000 Subject: [PATCH] Replace a regex with a search --- magic/Magdir/c-lang | 4 ++-- magic/Magdir/commands | 2 +- magic/Magdir/sgml | 6 +++--- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/magic/Magdir/c-lang b/magic/Magdir/c-lang index 343ef7f1..8893dabb 100644 --- a/magic/Magdir/c-lang +++ b/magic/Magdir/c-lang @@ -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) diff --git a/magic/Magdir/commands b/magic/Magdir/commands index d42fbefe..78a07540 100644 --- a/magic/Magdir/commands +++ b/magic/Magdir/commands @@ -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 diff --git a/magic/Magdir/sgml b/magic/Magdir/sgml index ccb5e37b..778a0cb9 100644 --- a/magic/Magdir/sgml +++ b/magic/Magdir/sgml @@ -1,8 +1,8 @@ # Type: SVG Vectorial Graphics # From: Noel Torres -0 string \15 string >\0 ->>23 regex .*\