Skip to content

Commit

Permalink
Add message url
Browse files Browse the repository at this point in the history
Closes GH-5.

Reviewed-by: Christian Murphy <[email protected]>
Reviewed-by: Titus Wormer <[email protected]>
  • Loading branch information
remcohaszing authored Dec 22, 2021
1 parent 8b80031 commit 450c4be
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@ import {pointStart, pointEnd} from 'unist-util-position'
import {list} from './list.js'

const source = 'retext-passive'
const url = 'https://github.com/retextjs/retext-passive#readme'

const verbs = new Set(['am', 'are', 'were', 'being', 'is', 'been', 'was', 'be'])

Expand Down Expand Up @@ -42,7 +43,7 @@ export default function retextPassive(options = {}) {
{start: pointStart(match[0]), end: pointEnd(match[match.length - 1])},
[source, phrase.replace(/\s+/g, '-').toLowerCase()].join(':')
),
{actual: toString(match), expected: []}
{actual: toString(match), expected: [], url}
)
})
}
Expand Down
3 changes: 2 additions & 1 deletion test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,8 @@ test('retext-passive', (t) => {
},
fatal: false,
actual: 'withheld',
expected: []
expected: [],
url: 'https://github.com/retextjs/retext-passive#readme'
},
'should emit messages'
)
Expand Down

0 comments on commit 450c4be

Please sign in to comment.