Skip to content
Prev Previous commit
Next Next commit
Only match expected string literal specifiers
  • Loading branch information
thecrypticace committed Nov 12, 2025
commit 14f888f1edd8d2b83a143e734d85bcc5c49c127d
4 changes: 2 additions & 2 deletions crates/oxide/src/extractor/pre_processors/ruby.rs
Original file line number Diff line number Diff line change
Expand Up @@ -143,8 +143,8 @@ impl PreProcessor for Ruby {
_ => {}
}

// Looking for `%w` or `%W`
if cursor.curr != b'%' && !matches!(cursor.next, b'w' | b'W') {
// Looking for `%w`, `%W`, or `%p`
if cursor.curr != b'%' || !matches!(cursor.next, b'w' | b'W' | b'p') {
cursor.advance();
continue;
}
Expand Down