We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
is_ascii
1 parent b1cb8e0 commit 5b5bf46Copy full SHA for 5b5bf46
src/descriptor/tr.rs
@@ -458,7 +458,7 @@ impl<Pk: MiniscriptKey> fmt::Display for Tr<Pk> {
458
// Helper function to parse string into miniscript tree form
459
fn parse_tr_tree(s: &str) -> Result<Tree, Error> {
460
for ch in s.bytes() {
461
- if ch > 0x7f {
+ if !ch.is_ascii() {
462
return Err(Error::Unprintable(ch));
463
}
464
src/expression.rs
@@ -213,7 +213,7 @@ impl<'a> Tree<'a> {
213
// Filter out non-ASCII because we byte-index strings all over the
214
// place and Rust gets very upset when you splinch a string.
215
216
217
218
219
0 commit comments