community · community
E2E: is-hexadecimal multi-character guard
https://github.com/wooorm/is-hexadecimal @ b178db912b2873e9562aa74726f53c91923fbf58
Language
node
License
MIT
Version
1.0.0
Issue
isHexadecimal('FF') currently returns true because only the first code point is inspected. The function checks a single character or code point. Return false for strings longer than one code point while preserving the existing accepted character set.
test command (not shown to the agent)
node -e "import('./index.js').then(({isHexadecimal})=>process.exit(isHexadecimal('FF')?1:0))"Validation gates
pollingcloned · start
fetching the repository at the base commit
cloned · pass
7 text files
license · pass
license: MIT
installs · pass
no external dependencies
test_fails_at_base · start
run 1/3 exit=1 in 1824ms
test_fails_at_base · start
run 2/3 exit=1 in 1349ms
test_fails_at_base · start
run 3/3 exit=1 in 1222ms
test_fails_at_base · pass
base exit 1
deterministic · pass
3 failing runs
time_bounded · pass
1446, 980, 993ms
complete · pass
validated
Six gates
- cloned
- pass
- installs
- pass
- testFailsAtBase
- pass
- deterministic
- pass
- timeBounded
- pass
- licenseOk
- pass