We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c7ab0db commit cdd3717Copy full SHA for cdd3717
app/scripts/app.js
@@ -40,7 +40,7 @@ angular.module('abstackVarLib', ['zeroclipboard'])
40
function compare(origin, target){
41
origin = origin.join('');
42
for(var i = 0;i<target.length;i++){
43
- if(origin.indexOf(target[i]) != -1)
+ if(origin.indexOf(target[i]) != -1 && i == target.length - 1)
44
return true;
45
}
46
return false;
@@ -51,9 +51,10 @@ angular.module('abstackVarLib', ['zeroclipboard'])
51
return input;
52
53
var temp = [];
54
- for(var i = 0;i<input.length;i++){
55
- if(compare(input[i].tags, type.split(' ')))
+ for(var i = 0;i<input.length;i++) {
+ if(compare(input[i].tags, type.split(' ')) || input[i].word.indexOf(type) != -1) {
56
temp.push(input[i]);
57
+ }
58
59
60
return temp;
0 commit comments