Skip to content
This repository has been archived by the owner on Dec 12, 2021. It is now read-only.

Commit

Permalink
Merge branch 'dev'
Browse files Browse the repository at this point in the history
  • Loading branch information
MCStreetguy committed Jul 30, 2017
2 parents 6b20aa2 + 9824acb commit ee7d2a2
Show file tree
Hide file tree
Showing 13 changed files with 5 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/snippet-injector.js
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ export default {
listitems.push({
title: elem.getTitle(),
uid: elem.getUID(),
tags: elem.getTags()
tags: elem.getTags(),
author: elem.getAuthor()
});
icons.push(elem.getLang());
});
Expand Down
3 changes: 3 additions & 0 deletions lib/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,11 @@ export default class Util {
if(text !== '' && text !== ' ' && text !== null && text !== undefined) {
var title = element.title.toLowerCase();
var tags = element.tags.join(' ').toLowerCase();
var author = element.author.toLowerCase();
if(text.startsWith('#')) {
return (tags.indexOf(text.split('#').join('')) > -1 ? true : false);
} else if(text.startsWith('@')) {
return (author.indexOf(text.split('@').join('')) > -1 ? true : false);
} else {
return (title.indexOf(text) > -1 ? true : false);
}
Expand Down
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
Binary file added wiki/logo-small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added wiki/logo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit ee7d2a2

Please sign in to comment.