mirror of
https://github.com/nadrad/h-m-m.git
synced 2024-06-20 05:45:00 +02:00
excluded \t and \n from the text cleaner
This commit is contained in:
parent
c104792e6a
commit
9c0582889e
6
h-m-m
6
h-m-m
|
@ -322,7 +322,7 @@ function decode_tree($lines, $root_id, $start_id)
|
|||
$lines[$lid] =
|
||||
mb_ereg_replace
|
||||
(
|
||||
"[\000-\037\177".BOM."]"
|
||||
"[\000-\010\013-\037\177".BOM."]"
|
||||
,''
|
||||
,str_replace
|
||||
(
|
||||
|
@ -1294,7 +1294,7 @@ function magic_readline(&$mm, $title)
|
|||
)
|
||||
;
|
||||
|
||||
$title = mb_ereg_replace("[\000-\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.
|
||||
|
@ -2115,7 +2115,7 @@ function get_from_clipboard(&$mm)
|
|||
return
|
||||
mb_ereg_replace
|
||||
(
|
||||
"[\000-\037\177".BOM."]"
|
||||
"[\000-\010\013-\037\177".BOM."]"
|
||||
,''
|
||||
,shell_exec($mm['clipboard']['read'])
|
||||
)
|
||||
|
|
Loading…
Reference in a new issue