Fixed an index out of bounds crash in VoiceWakeRuntime.trimmedAfterTrigger that occurred when processing voice transcripts. The issue was caused by attempting to subscript a string with an index that could exceed the string's endIndex when using indices from a lowercased version of the string. Added a guard statement to check that the index is within bounds before attempting to subscript the string. If the index is out of bounds, the function continues to the next trigger instead of crashing. Fixes the crash reported in crash.txt at line 743. |
||
|---|---|---|
| .. | ||
| Moltbot | ||
| MoltbotDiscovery | ||
| MoltbotIPC | ||
| MoltbotMacCLI | ||
| MoltbotProtocol | ||