~ knotless Search/
↑↓ move↵ open⇧↵ all results

chadtmiller.com/knotless-demo

A small sample project for trying the Knotless app: safe to comment on, report and block in.

0
0

Greeting keeps spaces around the name

Open
Open chadtmiller.com opened this issue 1 comment
Assigned to demo.knotless.dev

greet(" Ada ") returns "Hello, Ada !". The README's diagram says the name is trimmed first, but it isn't.

Expected: "Hello, Ada!"

Confirmed: name.trim() in greet fixes it. A test with spaces around the name would keep it fixed.