mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-12-04 09:54:14 +00:00
fix(assistant): readable cards for any tool, and the CI round
- A card for a tool without one of its own names what it works on: the place of an assignment, the day, the note, the booking; its arguments sit under the labels the other cards use, a new order reads as the names in order. 28 frequent tools carry their own action name in every language. - The server's own steps without a card still refuse, as before. - Tests: the rate limit is asked one request after another, the mention list closes on the caret move a browser reports, the place factory hands its category over as a plain id, eleven files formatted.
This commit is contained in:
@@ -144,9 +144,7 @@ export function splitMentions(text: string, labels: readonly string[]): MentionS
|
||||
let i = 0;
|
||||
while (i < text.length) {
|
||||
const token =
|
||||
text[i] === '@'
|
||||
? tokens.find((tk) => text.startsWith(tk, i) && endsWord(text, i + tk.length))
|
||||
: undefined;
|
||||
text[i] === '@' ? tokens.find((tk) => text.startsWith(tk, i) && endsWord(text, i + tk.length)) : undefined;
|
||||
if (token) {
|
||||
if (i > start) out.push({ text: text.slice(start, i), at: start, mention: false });
|
||||
out.push({ text: token, at: i, mention: true });
|
||||
|
||||
Reference in New Issue
Block a user