Skip to content

Commit

Permalink
Return mentionText in lookup.
Browse files Browse the repository at this point in the history
  • Loading branch information
Jordan Humphreys committed Jan 4, 2019
1 parent 31a7f67 commit 3e805c5
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion dist/tribute.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/Tribute.js
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ class Tribute {
if (typeof this.current.collection.lookup === 'string') {
return el[this.current.collection.lookup]
} else if (typeof this.current.collection.lookup === 'function') {
return this.current.collection.lookup(el)
return this.current.collection.lookup(el, this.current.mentionText)
} else {
throw new Error('Invalid lookup attribute, lookup must be string or function.')
}
Expand Down

0 comments on commit 3e805c5

Please sign in to comment.