From 271d13d747b53a158125bf160a7c89f19645ae7c Mon Sep 17 00:00:00 2001 From: Richard Feldman Date: Mon, 2 Sep 2019 22:21:42 -0400 Subject: [PATCH] Fix unicode escaping bug --- src/parser.rs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/parser.rs b/src/parser.rs index b317223fc4..17a1e2b3e6 100644 --- a/src/parser.rs +++ b/src/parser.rs @@ -594,6 +594,10 @@ fn handle_escaped_unicode<'a, 'p, I>( ); } } + + // We are now done processing the unicode portion of the string, + // so exit the loop without further advancing the iterator. + return; } else { hex_str.push(hex_char) }