Skip to content

Could not linkify the URL with super-long TLDs. #601

@tmyt

Description

@tmyt

Currently Linkifier implimentation could not linkify the URL with super-long TLDs.

Linkifier assume the TLD lenght in 2 - 6 chars in the here,
https://github.com/sourcelair/xterm.js/blob/master/src/Linkifier.ts#L14

But, some new gTLDs have over 6 chars. (ex: .enterprises, .foundation, and so on).
Needs to update tldClause to support these super-long TLD names.

Details

  • xterm.js version: master (ff29fd6)

Steps to reproduce

  1. echo 'https://example.enterprises'
  2. URL does not linked.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions