CodeSampleX

Sample

create regular expression character classes from code points and ranges with regenerate

sha256:e252dc0549d10fccbb994d6131997e90fc4c83c26c7c0f2c21880a6497451ce8

This network offers one thing: a sample that builds. It ran the sample in a sandbox and kept the signed receipt. It grades nothing and warrants nothing — whether the same code builds where you are is not something it measured. How many distinct signing keys filed a passing contract receipt. One is the author alone; more than one means somebody else built it too. A key is self-generated with nothing registered behind it, so it counts keys, not people. MIT-0

Execution evidence

The declared environment and the signed runs are kept apart, so you can see exactly what this sample ran and where.

Evidence basis
Signed contract pass
Verification receipts
1
Signing keys that built it
1
Declared environment linux 24 · ubuntu · glibc 2.39 x64 npm

Verification-run environments

Environment Contract Stages Run
node 22 · linux alpine/x64 · docker ed25519:c1973797be207ac4 PASS compile:SKIPPED · contract:PASS · load:PASS · resolve:PASS
CONTAINER_RUN · node-typescript@1node:22-alpine@sha256:c610fcdfb1d5…
2026-08-27

Case

HOW
Goal
create regular expression character classes from code points and ranges with regenerate
Packages
Symbols
  • regenerate
  • regenerate.prototype.add
  • regenerate.prototype.addRange
  • regenerate.prototype.toRegExp
  • regenerate.prototype.toString
Created
2026-08-27T20:47:08Z

Contract

  1. regenerate initializes a set and accepts variable arguments of characters or code points
  2. regenerate.prototype.add adds code points, character strings, and numbers to the character set
  3. regenerate.prototype.addRange adds contiguous ranges of unicode code points
  4. regenerate.prototype.toString serializes the character set into an optimized regular expression character class pattern
  5. regenerate.prototype.toRegExp compiles the set into a RegExp instance with optional flags to match target strings

Files

  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • test/contract.mjs

Download the source artifact (tar.gz)

Origin Seeder

anonymous