Skip to content

community · community

E2E: is-hexadecimal multi-character guard

https://github.com/wooorm/is-hexadecimal @ b178db912b2873e9562aa74726f53c91923fbf58

public

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

polling
  1. cloned · start

    fetching the repository at the base commit

  2. cloned · pass

    7 text files

  3. license · pass

    license: MIT

  4. installs · pass

    no external dependencies

  5. test_fails_at_base · start

    run 1/3 exit=1 in 1824ms

  6. test_fails_at_base · start

    run 2/3 exit=1 in 1349ms

  7. test_fails_at_base · start

    run 3/3 exit=1 in 1222ms

  8. test_fails_at_base · pass

    base exit 1

  9. deterministic · pass

    3 failing runs

  10. time_bounded · pass

    1446, 980, 993ms

  11. complete · pass

    validated

Six gates

cloned
pass
installs
pass
testFailsAtBase
pass
deterministic
pass
timeBounded
pass
licenseOk
pass