Commit 9a4ad4a
committed
Use
When calling `instructions.to_lowercase().rfind("lnurl")` and then
using the resulting value as a slice index in `instructions`, we
implicitly assume that any unicode lowercasing will not change the
length of any characters. That's probably fine in practice, but it
seems like a weird assumption to make, so instead we swap it for
`to_ascii_lowercase`.to_ascii_lowercase when checking for lnurl override start1 parent d6ef87c commit 9a4ad4a
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
947 | 947 | | |
948 | 948 | | |
949 | 949 | | |
950 | | - | |
| 950 | + | |
951 | 951 | | |
952 | 952 | | |
953 | 953 | | |
| |||
0 commit comments