(prefix)
| 175 | } |
| 176 | |
| 177 | test(prefix) { |
| 178 | let {args, returns} = this.resolve(prefix); |
| 179 | let text = args[Find.AttributeMapping["text"]]; |
| 180 | let subtext = args[Find.AttributeMapping["subtext"]]; |
| 181 | if(typeof text !== "string"|| typeof subtext !== "string") return false; |
| 182 | return text.indexOf(subtext, returns[0] - 1) === returns[0]; |
| 183 | } |
| 184 | |
| 185 | getProposal(tripleIndex, proposed, prefix) { |
| 186 | let proposal = this.proposalObject; |