Skip to content

Commit

Permalink
Add lts/hydrogen to test matrix, fix undefined method
Browse files Browse the repository at this point in the history
(maybe)
richardTowers committed Sep 13, 2024
1 parent 4281bbe commit f0f65bd
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -16,5 +16,6 @@ jobs:
strategy:
matrix:
node:
- lts/hydrogen
- lts/iron
- node
2 changes: 1 addition & 1 deletion dev/lib/mdast-util-abbr/index.js
Original file line number Diff line number Diff line change
@@ -30,7 +30,7 @@ function splitTextByAbbr(textNode, abbreviations) {
uniqueAbbreviationMap.set(abbreviation.label, abbreviation)
}

const uniqueAbbreviations = uniqueAbbreviationMap.values().toArray()
const uniqueAbbreviations = [...uniqueAbbreviationMap.values()]

const matches = uniqueAbbreviations
.map((abbr) => [abbr, textNode.value.indexOf(abbr.label)])

0 comments on commit f0f65bd

Please sign in to comment.