mirror of
https://github.com/ankitects/anki.git
synced 2025-09-18 22:12:21 -04:00
Ignore non-ASCII chars in ascii_percent_encoding
This commit is contained in:
parent
55f27779cf
commit
0b206b8a81
1 changed files with 2 additions and 1 deletions
|
@ -82,7 +82,8 @@ impl AsciiSet {
|
||||||
}
|
}
|
||||||
|
|
||||||
fn should_percent_encode(&self, byte: u8) -> bool {
|
fn should_percent_encode(&self, byte: u8) -> bool {
|
||||||
!byte.is_ascii() || self.contains(byte)
|
// MODIFIED
|
||||||
|
byte.is_ascii() && self.contains(byte)
|
||||||
}
|
}
|
||||||
|
|
||||||
pub const fn add(&self, byte: u8) -> Self {
|
pub const fn add(&self, byte: u8) -> Self {
|
||||||
|
|
Loading…
Reference in a new issue