MCPcopy Index your code
hub / github.com/simstudioai/sim / constructor

Method constructor

apps/sim/lib/chunkers/regex-chunker.ts:62–68  ·  view source on GitHub ↗
(options: RegexChunkerOptions)

Source from the content-addressed store, hash-verified

60 private readonly strictBoundaries: boolean
61
62 constructor(options: RegexChunkerOptions) {
63 const resolved = resolveChunkerOptions(options)
64 this.chunkSize = resolved.chunkSize
65 this.chunkOverlap = resolved.chunkOverlap
66 this.regex = this.compilePattern(options.pattern)
67 this.strictBoundaries = options.strictBoundaries ?? false
68 }
69
70 private compilePattern(pattern: string): RegExp {
71 if (!pattern) {

Callers

nothing calls this directly

Calls 2

compilePatternMethod · 0.95
resolveChunkerOptionsFunction · 0.90

Tested by

no test coverage detected