diff options
author | Christian Pointner <equinox@spreadspace.org> | 2016-08-07 23:08:42 +0200 |
---|---|---|
committer | Christian Pointner <equinox@spreadspace.org> | 2016-08-07 23:08:42 +0200 |
commit | 0f5c6298749c12b17dcf070002f8e972c3acb1be (patch) | |
tree | d1ab867e36552eb773e8882f457b304ba35b8054 | |
parent | 19f90ad83b09e7bf62719c5baf1ece191ef8d8f7 (diff) |
also regex matches differ between apache and nginx
-rw-r--r-- | bssid.shtml | 2 | ||||
-rw-r--r-- | bssid2.shtml | 8 |
2 files changed, 5 insertions, 5 deletions
diff --git a/bssid.shtml b/bssid.shtml index dbb0cc8..db6425a 100644 --- a/bssid.shtml +++ b/bssid.shtml @@ -3,7 +3,7 @@ <!--#elif expr="$POL = l"--><!--#set var="POLCODED" value="6"--> <!--#elif expr="$POL = r"--><!--#set var="POLCODED" value="2"--> <!--#endif--> -<!--#if expr="$CHAN = /^([1-9]|1[0-3])$/"--> +<!--#if expr="$CHAN = /([1-9]|1[0-3])/"--> <!--#include file="bssid2.shtml"--> <!--#else-->??:??:??:C?:?? <!--#endif--> diff --git a/bssid2.shtml b/bssid2.shtml index 2d877f2..cc2880c 100644 --- a/bssid2.shtml +++ b/bssid2.shtml @@ -1,8 +1,8 @@ -<!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#if expr="$CHAN = 3"-->2<!--#else--><!--#echo var="CHAN"--><!--#endif-->:CA:FF:EE:BA:BE<br/> +<!--#if expr="$CHAN = /[1-9]/"-->0<!--#endif--><!--#if expr="$CHAN = 3"-->2<!--#else--><!--#echo var="CHAN"--><!--#endif-->:CA:FF:EE:BA:BE<br/> <em>oder / ali / or</em> <br/> -C<!--#echo var="POLCODED"-->:00:24:00:C0:<!--#if expr="$CHAN = /^[1-9]$/"-->0<!--#endif--><!--#echo var="CHAN"--> -<!--#elif expr="$CHAN = /^(36|40|44|48|52|56|60|64)$/"--> +C<!--#echo var="POLCODED"-->:00:24:00:C0:<!--#if expr="$CHAN = /[1-9]/"-->0<!--#endif--><!--#echo var="CHAN"--> +<!--#elif expr="$CHAN = /(36|40|44|48|52|56|60|64)/"--> C<!--#echo var="POLCODED"-->:00:50:00:C0:<!--#echo var="CHAN"--> -<!--#elif expr="$CHAN = /^1(00|04|08|12|16|20|24|28|32|36|40)$/"--> +<!--#elif expr="$CHAN = /1(00|04|08|12|16|20|24|28|32|36|40)/"--> <!--#set var="CHANLOW" value="$1"--> C<!--#echo var="POLCODED"-->:00:50:00:C1:<!--#echo var="CHANLOW"--> |