Skip to content

[Bug] The table is broken, after adding url with exclamation mark #322

Description

@elaichenkov

Description: The table is broken if providing a hyperlink with a shebang (#!).

Code snippet:

const Table = require('cli-table3');

const table = new Table();
const href = 'http://example.com/!';

table.push([{ content: 'Text Link', href }]);

console.log(table.toString());

Output:

┌───────────┐
│ │
└───────────┘

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions