mirror of
https://github.com/TECHNOFAB11/pay-respects.git
synced 2025-12-12 06:20:09 +01:00
fix: allow multi-byte commands
This commit is contained in:
parent
c0b354d244
commit
ca2cfee6e2
1 changed files with 4 additions and 1 deletions
|
|
@ -234,7 +234,10 @@ impl Data {
|
|||
pub fn extract_env(&mut self) {
|
||||
let mut envs = vec![];
|
||||
loop {
|
||||
if self.split[0][1..].contains("=") {
|
||||
let mut char = self.split[0].char_indices();
|
||||
char.next();
|
||||
let offset = char.offset();
|
||||
if self.split[0][offset..].contains("=") {
|
||||
envs.push(self.split.remove(0));
|
||||
} else {
|
||||
break;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue