Comment on D or d come on
lemmonade@lemm.ee 1 year agoYou could also say that down
should not complete to download
since those are completely different strings and you shouldn’t expect one to get you the other.
Comment on D or d come on
lemmonade@lemm.ee 1 year agoYou could also say that down
should not complete to download
since those are completely different strings and you shouldn’t expect one to get you the other.
Feyter@programming.dev 1 year ago
Sorry,
down
is a substring ofdownload
I don’t get your point either?Honytawk@lemmy.zip 1 year ago
Substring is not string.
If they were interchangeable, then “D” & “d” should be too.
Feyter@programming.dev 1 year ago
down
matchesdown*
because*
also includes empty string. Alsodownload
matchesdown*
D
matchesD*
butd
is not matchingD*
becauseD
is a different character thand
.lemmonade@lemm.ee 1 year ago
but why do we have to match specifically against
substr*
? it’s not a law of nature, we could also match against the regex(?i)substr(?-i).*
not saying that one option is necessarily better, but I don’t see a good reason for which it any one of these options is terrible