mirror of
https://github.com/YGGverse/gemini-php.git
synced 2025-01-27 23:34:15 +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
|
||||
|
||||
/// 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',
|
||||
|
||||
/// Remove extras
|
||||
/// Remove extra chars
|
||||
'/\[\[\s*\:?([^\|]+)\s*\|\s*([^\]]+)\s*\]\]/' => '[[$1|$2]]',
|
||||
'/\[\[\s*\:?([^\]]+)\s*\]\]/' => '[[$1]]',
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user