mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-08 03:52:12 +02:00
refined the control character cleaner
This commit is contained in:
parent
7ffdffc6bf
commit
8bfdc68956
6
h-m-m
6
h-m-m
|
@ -324,7 +324,7 @@ function decode_tree($lines, $root_id, $start_id)
|
||||||
$lines[$lid] =
|
$lines[$lid] =
|
||||||
mb_ereg_replace
|
mb_ereg_replace
|
||||||
(
|
(
|
||||||
"[\000-\010\013-\037\177".BOM."]"
|
"[\000-\010\013-\037\177]|".BOM
|
||||||
,''
|
,''
|
||||||
,str_replace
|
,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);
|
$cursor += mb_strlen($in);
|
||||||
// the input content can be longer than one character if
|
// the input content can be longer than one character if
|
||||||
// the user uses ctrl+shift+v to paste.
|
// the user uses ctrl+shift+v to paste.
|
||||||
|
@ -2118,7 +2118,7 @@ function get_from_clipboard(&$mm)
|
||||||
return
|
return
|
||||||
mb_ereg_replace
|
mb_ereg_replace
|
||||||
(
|
(
|
||||||
"[\000-\010\013-\037\177".BOM."]"
|
"[\000-\010\013-\037\177]|".BOM
|
||||||
,''
|
,''
|
||||||
,shell_exec($mm['clipboard']['read'])
|
,shell_exec($mm['clipboard']['read'])
|
||||||
)
|
)
|
||||||
|
|
Loading…
Reference in a new issue