mirror of
https://github.com/jkingsman/Remote-Terminal-for-MeshCore.git
synced 2026-08-05 16:23:27 +02:00
Implement repeater CLI interface
This commit is contained in:
@@ -6,8 +6,8 @@ export function parseSenderFromText(text: string): { sender: string | null; cont
|
||||
const colonIndex = text.indexOf(': ');
|
||||
if (colonIndex > 0 && colonIndex < 50) {
|
||||
const potentialSender = text.substring(0, colonIndex);
|
||||
// Check for invalid characters that would indicate it's not a sender
|
||||
if (!/[:\[\]]/.test(potentialSender)) {
|
||||
// Check for colon in potential sender (would indicate it's not a simple name)
|
||||
if (!potentialSender.includes(':')) {
|
||||
return {
|
||||
sender: potentialSender,
|
||||
content: text.substring(colonIndex + 2),
|
||||
|
||||
Reference in New Issue
Block a user