Skip to content

Commit

Permalink
feat: Use prefix-match for TOKAY_INSPECT
Browse files Browse the repository at this point in the history
  • Loading branch information
phorward committed Dec 28, 2023
1 parent e00c6d8 commit b79751e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/vm/context.rs
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ impl<'program, 'reader, 'thread, 'parselet> Context<'program, 'reader, 'thread,
//println!("{:?}", self.parselet.name);
if let Ok(inspect) = std::env::var("TOKAY_INSPECT") {
for name in inspect.split(" ") {
if name == self.parselet.name {
if self.parselet.name.starts_with(name) {
self.debug = 6;
break;
}
Expand Down

0 comments on commit b79751e

Please sign in to comment.