• lemmonade@lemm.ee
    link
    fedilink
    arrow-up
    11
    arrow-down
    2
    ·
    1 year ago

    You 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.

      • Honytawk@lemmy.zip
        link
        fedilink
        arrow-up
        6
        arrow-down
        2
        ·
        1 year ago

        Substring is not string.

        If they were interchangeable, then "D" & "d" should be too.

        • Feyter@programming.devM
          link
          fedilink
          arrow-up
          2
          ·
          1 year ago

          down matches down* because * also includes empty string. Also download matches down*

          D matches D* but d is not matching D* because D is a different character than d.