"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/formatter/cleanwacko.php" between
wacko.6.1.14.zip and wacko.6.1.15.zip

About: WackoWiki is a multilingual Wiki-engine that supports WYTIWYG-editing, page rights (ACLs), design themes (skins), file upload, email notification and much more.

cleanwacko.php  (wacko.6.1.14):cleanwacko.php  (wacko.6.1.15)
skipping to change at line 23 skipping to change at line 23
{ {
return; return;
} }
// ignore the slashes and the long dash in the title, in url and pgp headers // ignore the slashes and the long dash in the title, in url and pgp headers
$text = preg_replace('/====(.*?)\/\/(.*?)\/\/(.*?)====/u', '\\1@@@@\\2@@@@\\ 3', $text); $text = preg_replace('/====(.*?)\/\/(.*?)\/\/(.*?)====/u', '\\1@@@@\\2@@@@\\ 3', $text);
$text = preg_replace('/(http:|https:|ftp:|nntp:)\/\//u', '\\1@@@@', $text); $text = preg_replace('/(http:|https:|ftp:|nntp:)\/\//u', '\\1@@@@', $text);
$text = preg_replace('/-{5}([A-Z ]+?)-{5}/u', '&&&&&\\1 &&&&&', $text); $text = preg_replace('/-{5}([A-Z ]+?)-{5}/u', '&&&&&\\1 &&&&&', $text);
// Cut a simple counting // Cut a simple counting
$text = str_replace('**', '', $text); $text = str_replace(
$text = str_replace('//', '', $text); [
$text = str_replace('__', '', $text); '**',
$text = str_replace('----', '', $text); '//',
$text = str_replace('---', '', $text); '__',
$text = str_replace('##', '', $text); '----',
$text = str_replace('¹¹', '', $text); '---',
$text = str_replace('++', '', $text); '##',
$text = str_replace('??', '', $text); '¹¹',
$text = str_replace('""', '', $text); '++',
$text = str_replace('~', '', $text); '??',
$text = str_replace('>>>', '', $text); '""',
$text = str_replace('>>', '', $text); '~',
$text = str_replace('<<<', '', $text); '>>>',
$text = str_replace('<<', '', $text); '>>',
$text = str_replace('%%', '', $text); '<<<',
$text = str_replace('======', '', $text); '<<',
$text = str_replace('=====', '', $text); '%%',
$text = str_replace('====', '', $text); '======',
$text = str_replace('===', '', $text); '=====',
$text = str_replace('<[', '"', $text); '====',
$text = str_replace(']>', '"', $text); '===',
$text = str_replace('#||', '"', $text); ],
$text = str_replace('||#', '"', $text); '',
$text = str_replace('#|', '"', $text); $text);
$text = str_replace('|#', '"', $text);
$text = str_replace('||', '', $text); $text = str_replace(
$text = str_replace('*|', '', $text); [
$text = str_replace('|*', '', $text); '<[',
']>',
'#||',
'||#',
'#|',
'|#',
],
'"',
$text);
$text = str_replace(
[
'||',
'*|',
'|*',
],
'',
$text);
// Cut headlines h1 // Cut headlines h1
$text = preg_replace('/==.+?==[\s]*/', '', $text); $text = preg_replace('/==.+?==[\s]*/', '', $text);
// return slash and dash // return slash and dash
$text = str_replace('@@@@', '//', $text); $text = str_replace('@@@@', '//', $text);
$text = str_replace('&&&&&', '-----', $text); $text = str_replace('&&&&&', '-----', $text);
// cut or parse a complex layout // cut or parse a complex layout
$text = preg_replace('/!!(?:\\([\\w]+?\\))*(.+?)!!/u', '\\1', $text); // !!(col or)text!! $text = preg_replace('/!!(?:\\([\\w]+?\\))*(.+?)!!/u', '\\1', $text); // !!(col or)text!!
 End of changes. 1 change blocks. 
29 lines changed or deleted 46 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)