mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-07 05:42:57 -04:00
fix weblink, add def and d as dictionary aliases
This commit is contained in:
parent
69949588b0
commit
2a9eca457a
2 changed files with 3 additions and 3 deletions
|
@ -52,7 +52,7 @@ function renderDictionaryEntry(context, result, definition, language) {
|
|||
|
||||
if(defs.length > 5){
|
||||
defs = defs.splice(0, 5);
|
||||
defs.push(`${link("https://www.google.com/search?q=define+${encodeURIComponent(result.word)}", `More Definitions ${icon("open_in_new")}`)}`)
|
||||
defs.push(link(`https://www.google.com/search?q=define+${encodeURIComponent(result.word)}`, `More Definitions ${icon("open_in_new")}`))
|
||||
}
|
||||
card.description += defs.join("\n\n")
|
||||
|
||||
|
|
|
@ -51,7 +51,7 @@ function renderDictionaryEntry(context, result, definition, language) {
|
|||
|
||||
if(defs.length > 5){
|
||||
defs = defs.splice(0, 5);
|
||||
defs.push(`${link("https://www.google.com/search?q=define+${encodeURIComponent(result.word)}", `More Definitions ${icon("open_in_new")}`)}`)
|
||||
defs.push(link(`https://www.google.com/search?q=define+${encodeURIComponent(result.word)}`, `More Definitions ${icon("open_in_new")}`))
|
||||
}
|
||||
card.description += defs.join("\n\n")
|
||||
|
||||
|
@ -61,7 +61,7 @@ function renderDictionaryEntry(context, result, definition, language) {
|
|||
module.exports = {
|
||||
name: 'dictionary',
|
||||
label: 'query',
|
||||
aliases: ['define', 'dict', 'definition'],
|
||||
aliases: ['define', 'dict', 'definition', 'def', 'd'],
|
||||
metadata: {
|
||||
description: 'Looks up words and teminology in a dictionary.',
|
||||
description_short: 'Dictionary word definitions.',
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue