Skip to content

Commit fdb46f5

Browse files
author
Jay Jackson
committed
fix logic issue
1 parent c1dfa57 commit fdb46f5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/events/attributes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -866,7 +866,7 @@ impl<'a> IterState<'a> {
866866
// ^
867867
Some((e, b'\'')) => self.single_q(key, start_value..e),
868868
Some((e, &q)) => {
869-
if let Some((o, c)) = self.custom_quotes.iter().find(|(o, _)| *o == q) {
869+
if let Some((o, c)) = self.custom_quotes.iter().find(|(_, c)| *c == q) {
870870
self.custom_q(key, start_value..e, *o, *c)
871871
} else {
872872
// Input: ` key = x x`

0 commit comments

Comments
 (0)