forked from leftypol/leftypol
Allow Unicode in board URIs.
This commit is contained in:
parent
3bee1ba4fd
commit
42cba53887
8 changed files with 63 additions and 47 deletions
|
@ -1130,6 +1130,9 @@
|
|||
// 'type' => 'scp'
|
||||
//);
|
||||
|
||||
// Regex for board URIs
|
||||
$config['board_regex'] = '[0-9a-zA-Z$_\x{0080}-\x{FFFF}]{1,58}';
|
||||
|
||||
// Complex regular expression to catch URLs
|
||||
$config['url_regex'] = '/' . '(https?|ftp):\/\/' . '(([\w\-]+\.)+[a-zA-Z]{2,6}|\d{1,3}\.\d{1,3}\.\d{1,3}\.\d{1,3})' . '(:\d+)?' . '(\/([\w\-~.#\/?=&;:+%!*\[\]@$\'()+,|\^]+)?)?' . '/';
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue