refined the control character cleaner

This commit is contained in:
nadrad 2022-09-17 00:41:45 +02:00
parent 7ffdffc6bf
commit 8bfdc68956

6
h-m-m
View file

@ -324,7 +324,7 @@ function decode_tree($lines, $root_id, $start_id)
$lines[$lid] =
mb_ereg_replace
(
"[\000-\010\013-\037\177".BOM."]"
"[\000-\010\013-\037\177]|".BOM
,''
,str_replace
(
@ -1296,7 +1296,7 @@ function magic_readline(&$mm, $title)
)
;
$title = mb_ereg_replace("[\000-\010\013-\037\177".BOM."]",'',$title);
$title = mb_ereg_replace("[\000-\010\013-\037\177]|".BOM,'',$title);
$cursor += mb_strlen($in);
// the input content can be longer than one character if
// the user uses ctrl+shift+v to paste.
@ -2118,7 +2118,7 @@ function get_from_clipboard(&$mm)
return
mb_ereg_replace
(
"[\000-\010\013-\037\177".BOM."]"
"[\000-\010\013-\037\177]|".BOM
,''
,shell_exec($mm['clipboard']['read'])
)