mirror of
https://github.com/Eugeny/tabby
synced 2025-03-04 15:17:17 +00:00
linkifier: re-added port support
This commit is contained in:
parent
cc8c200da0
commit
1ec218775e
1 changed files with 1 additions and 1 deletions
|
@ -12,7 +12,7 @@ import { LinkHandler } from './api'
|
|||
export class URLHandler extends LinkHandler {
|
||||
// From https://urlregex.com/
|
||||
// with "-" added to last group (https://github.com/Eugeny/tabby/issues/5611)
|
||||
regex = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w-]*))?)/
|
||||
regex = /((([A-Za-z]{3,9}:(?:\/\/)?)(?:[\-;:&=\+\$,\w]+@)?[A-Za-z0-9\.\-]+|(?:www\.|[\-;:&=\+\$,\w]+@)[A-Za-z0-9\.\-]+)((:((6553[0-5])|(655[0-2][0-9])|(65[0-4][0-9]{2})|(6[0-4][0-9]{3})|([1-5][0-9]{4})|([0-5]{1,5})|([0-9]{1,4})))?(?:\/[\+~%\/\.\w\-_]*)?\??(?:[\-\+=&;%@\.\w_]*)#?(?:[\.\!\/\\\w-]*))?)/
|
||||
|
||||
priority = 5
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue