]> granicus.if.org Git - file/commitdiff
Split magic to make it more readable.
authorChristos Zoulas <christos@zoulas.com>
Tue, 23 Feb 2016 12:35:20 +0000 (12:35 +0000)
committerChristos Zoulas <christos@zoulas.com>
Tue, 23 Feb 2016 12:35:20 +0000 (12:35 +0000)
magic/Magdir/commands

index 1e06ee88ba83f539eae7a72773e911b93b49d89d..95109f301e6a178489ba77f35e502a34f1cc4082 100644 (file)
@@ -1,6 +1,6 @@
 
 #------------------------------------------------------------------------------
-# $File: commands,v 1.51 2014/09/27 00:12:55 christos Exp $
+# $File: commands,v 1.52 2015/06/04 19:16:55 christos Exp $
 # commands:  file(1) magic for various shells and interpreters
 #
 #0     string/w        :                       shell archive or script for antique kernel text
@@ -98,7 +98,9 @@
 !:mime text/x-php
 # Smarty compiled template, http://www.smarty.net/
 # Elan Ruusamae <glen@delfi.ee>
-0      string  =<?php\ /*\ Smarty\ version     Smarty compiled template
+0      string  =<?php
+>5     regex   [\ \n]
+>>6    string  /*\ Smarty\ version             Smarty compiled template
 >24    regex   [0-9.]+                         \b, version %s
 !:mime text/x-php