mirror of
https://github.com/YGGverse/gemini-php.git
synced 2025-01-29 16:24:13 +00:00
remove extra spaces
This commit is contained in:
parent
6ddee5cb56
commit
80f77ea701
@ -36,12 +36,15 @@ class Reader
|
|||||||
'/\%\%/' => '',
|
'/\%\%/' => '',
|
||||||
'/\/\//' => '',
|
'/\/\//' => '',
|
||||||
|
|
||||||
|
// Remove extra spaces
|
||||||
|
'/(\s)\s+/' => '$1',
|
||||||
|
|
||||||
// Links
|
// Links
|
||||||
|
|
||||||
/// Detect IPv6 (used as no idea how to resolve square quotes in rules below)
|
/// Detect IPv6 (used as no idea how to resolve square quotes in rules below)
|
||||||
'/\[\[([^\[]+)\[([A-f:0-9]*)\]([^\]]+)\]\]/' => '$1~IPv6:open~$2~IPv6:close~$3',
|
'/\[\[([^\[]+)\[([A-f:0-9]*)\]([^\]]+)\]\]/' => '$1~IPv6:open~$2~IPv6:close~$3',
|
||||||
|
|
||||||
/// Remove extras
|
/// Remove extra chars
|
||||||
'/\[\[\s*\:?([^\|]+)\s*\|\s*([^\]]+)\s*\]\]/' => '[[$1|$2]]',
|
'/\[\[\s*\:?([^\|]+)\s*\|\s*([^\]]+)\s*\]\]/' => '[[$1|$2]]',
|
||||||
'/\[\[\s*\:?([^\]]+)\s*\]\]/' => '[[$1]]',
|
'/\[\[\s*\:?([^\]]+)\s*\]\]/' => '[[$1]]',
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user