Add ignore 0x09, 0x0a, 0x0d
This commit is contained in:
@@ -85,7 +85,11 @@
|
|||||||
$m = array();
|
$m = array();
|
||||||
|
|
||||||
// eq '/[[:cntrl:]]/u';
|
// eq '/[[:cntrl:]]/u';
|
||||||
$re = '/[\x00-\x1F\x7F]/u';
|
// $re = '/[\x00-\x1F\x7F]/u';
|
||||||
|
// Add ignore 0x09, 0x0a, 0x0d
|
||||||
|
$re = '/[\x00-\x08\x0b-\x0c\x0e-\x1F\x7F]/u';
|
||||||
|
|
||||||
|
// $ign = array("0x09", "0x0a", "0x0d");
|
||||||
|
|
||||||
if(preg_match_all($re, $str, $m)) {
|
if(preg_match_all($re, $str, $m)) {
|
||||||
$tr = array();
|
$tr = array();
|
||||||
@@ -98,6 +102,9 @@
|
|||||||
|
|
||||||
$hex = "0x" . bin2hex($bin);
|
$hex = "0x" . bin2hex($bin);
|
||||||
|
|
||||||
|
// if(in_array($hex, $ign))
|
||||||
|
// continue;
|
||||||
|
|
||||||
$tr[$bin] = $hex;
|
$tr[$bin] = $hex;
|
||||||
|
|
||||||
if($d)
|
if($d)
|
||||||
|
Reference in New Issue
Block a user