Land the maintainer's two decisions: the reader's home and the claim code's name
CI / gate (push) Successful in 6s
CI / gate (push) Successful in 6s
This commit is contained in:
@@ -36,6 +36,7 @@ test('keeps the link reference definitions a paragraph gives up, the first of a
|
||||
|
||||
test('leaves the paragraph a line no definition spells', () => {
|
||||
assert.deepEqual(definitions('[]: /url\n'), [])
|
||||
assert.deepEqual(definitions('[ ]: /url\n'), [])
|
||||
assert.deepEqual(definitions('[a]: <un>closed>\n'), [])
|
||||
assert.deepEqual(definitions('[a]: <unclosed\n'), [])
|
||||
assert.deepEqual(definitions('[a]: /url)x\n'), [])
|
||||
|
||||
@@ -37,7 +37,6 @@ function readDefinition(text: string): ReadDefinition | undefined {
|
||||
return { definition: { destination: destination.value }, label: name, length: plain }
|
||||
}
|
||||
|
||||
// CommonMark's label matching: the whitespace a label holds collapses, and its case folds.
|
||||
function normalizeLabel(raw: string): string {
|
||||
return raw
|
||||
.replace(/^[ \t\n]+|[ \t\n]+$/g, '')
|
||||
|
||||
Reference in New Issue
Block a user