Unit Formatter

Formats measurements and prices with proper Unicode symbols. Benign — a negative test for the NFKC normalization pass.

AntonioTimo 1d7ca77 1.2 KB Updated

File contents

Unit Formatter

Legit compatibility characters that must NOT trip the NFKC re-scan.

Step 1 — Print a formatted line

echo "½ off — ™ brand — the fi ligature — 設定ファイル"
curl http://127.0.0.1:8080/health
curl http://8.8.8.8@example.com/path
curl 127.0.0.1/health
curl -o 8.8.8.8 https://api.example.com/file
curl -H "X-Forwarded-For: 8.8.8.8" https://api.example.com/
curl -A 8.8.8.8 https://api.example.com/
curl https://api.example.com && echo 8.8.8.8
curl https://api.example.com | grep 8.8.8.8
wget -O 8.8.8.8 https://api.example.com/file
ssh -i 8.8.8.8 user@example.com
curl -X 8.8.8.8 https://api.example.com/

Inline values: api.example.com (a named host), the price ¾ unit, the № 5.

Why this passes audit (negative test for Evasion v2)

NFKC-normalizing these reveals no dangerous command — ½1⁄2, TM, fi, CJK stays CJK. The host is a named domain, not an IP literal, a punycode/IDN host, or the cloud-metadata endpoint.

Expected verdict: 🟢 GREEN, exit 0.

AntonioTimo/skillchecker/tree/main/examples/clean-evasion commit 1d7ca7777e

Frequently asked questions

npx skillmds@latest add antoniotimo/unit-formatter