unterminated url - bhsd-harry/wikiparser-node GitHub Wiki

unterminated-url

⚠️ By default, this rule reports URLs containing | or full-width punctuations as warnings.

Options

pipe

This option can be configured to specify the severity of URLs containing |.

Examples of incorrect code for { "unterminated-url": [ 0, { "pipe": 2 } ] }:

[//example.com|Example]

Examples of correct code for { "unterminated-url": [ 2, { "pipe": 0 } ] }:

[//example.com|Example]

punctuation

This option can be configured to specify the severity of URLs containing full-width punctuations.

Examples of incorrect code for { "unterminated-url": [ 0, { "punctuation": 2 } ] }:

https://example.com。

Examples of correct code for { "unterminated-url": [ 2, { "punctuation": 0 } ] }:

https://example.com。