diff options
Diffstat (limited to 'src/find.js')
-rw-r--r-- | src/find.js | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/find.js b/src/find.js index 5a249c28..8e1a427b 100644 --- a/src/find.js +++ b/src/find.js @@ -70,7 +70,7 @@ function findHelper({ // errors for null matches (with details about the error), while 'warn' and // 'quiet' both return null, with 'warn' logging details directly to the // console. - return (fullRef, data, {mode = 'warn'}) => { + return (fullRef, data, {mode = 'warn'} = {}) => { if (!fullRef) return null; if (typeof fullRef !== 'string') { throw new TypeError(`Expected a string, got ${typeAppearance(fullRef)}`); @@ -140,10 +140,10 @@ const find = { artTag: findHelper({ referenceTypes: ['tag'], - getMatchableNames: tag => - (tag.isContentWarning - ? [`cw: ${tag.name}`] - : [tag.name]), + getMatchableNames: artTag => + (artTag.isContentWarning + ? [`cw: ${artTag.name}`] + : [artTag.name]), }), flash: findHelper({ |