Skip to content

implement string.search() for regex pattern matching#303

Merged
cs01 merged 1 commit intomainfrom
feat-array-of
Mar 12, 2026
Merged

implement string.search() for regex pattern matching#303
cs01 merged 1 commit intomainfrom
feat-array-of

Conversation

@cs01
Copy link
Copy Markdown
Owner

@cs01 cs01 commented Mar 12, 2026

Summary

  • Adds string.search(regex) returning the index of the first match, or -1 if no match
  • Supports regex literals with flags (e.g., /pattern/i)
  • Uses existing regex C bridge infrastructure

Test plan

  • tests/fixtures/strings/string-search.ts — basic match, no match, case-insensitive, character class
  • npm run verify:quick passes (tests + Stage 1 self-hosting)

🤖 Generated with Claude Code

@cs01 cs01 merged commit 7091f89 into main Mar 12, 2026
12 checks passed
@cs01 cs01 deleted the feat-array-of branch March 19, 2026 05:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant