Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Apply suggestions from code review
  • Loading branch information
RobinMalfait authored Mar 11, 2025
commit a1aa79a32b25be28d79097feb58f3898b41dbf23
4 changes: 2 additions & 2 deletions crates/oxide/src/extractor/arbitrary_property_machine.rs
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ impl Machine for ArbitraryPropertyMachine<ParsingValueState> {
#[inline]
fn next(&mut self, cursor: &mut cursor::Cursor<'_>) -> MachineState {
let len = cursor.input.len();
let start_of_value = cursor.pos;
let start_of_value_pos = cursor.pos;
while cursor.pos < len {
match cursor.curr.into() {
Class::Escape => match cursor.next.into() {
Expand Down Expand Up @@ -224,7 +224,7 @@ impl Machine for ArbitraryPropertyMachine<ParsingValueState> {
Class::Whitespace => return self.restart(),

// URLs are not allowed
Class::Slash if start_of_value == cursor.pos => return self.restart(),
Class::Slash if start_of_value_pos == cursor.pos => return self.restart(),

// Everything else is valid
_ => cursor.advance(),
Expand Down