CodeSampleX

Sample

match grapheme clusters and emoji sequences with regex

sha256:e76d121a71c2363851d74aaa91b4e15912580e15c609657801beefd2c598d2b3

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 node 22.23 linux 24 · ubuntu · glibc 2.39 x64 node 22.23 javascript npm 10

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
match grapheme clusters and emoji sequences with regex
Packages
Symbols
  • charRegex
Environment
node 22.23.2
Created
2026-08-27T12:39:10Z

Contract

  1. charRegex returns a regular expression with global flag enabled
  2. charRegex matches standard ASCII letters and numbers individually
  3. charRegex matches emoji with skin tone modifiers as a single character
  4. charRegex matches regional indicator flag sequences as a single character
  5. charRegex matches zero-width joiner (ZWJ) family and composite emoji sequences as a single character
  6. charRegex matches characters with combining diacritical marks as a single character
  7. charRegex correctly counts grapheme clusters in mixed multi-byte text

Files

  • PROMPT.md
  • csx.json
  • package-lock.json
  • package.json
  • spec.json
  • src/index.js
  • test/contract.js

Download the source artifact (tar.gz)

Origin Seeder

anonymous