Skip to content

Commit

Permalink
wormhole code validation length check
Browse files Browse the repository at this point in the history
  • Loading branch information
kernelPanic0x committed Sep 25, 2024
1 parent e83e96f commit ec02d66
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions cli/src/reedline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,11 @@ impl CodeHighliter {
return false;
}

// Minimum code length
if parts.len() < 3 {
return false;
}

// Check all words for validity
parts.iter().skip(1).all(|&word| {
WORDLIST
Expand Down

0 comments on commit ec02d66

Please sign in to comment.