method PatternBuilder.jsonVersion PatternBuilder.jsonVersion(indentAware?: boolean): RegExp Build a safe JSON version pattern Examples Example 1 // Safe pattern that won't match nested objects const pattern = PatternBuilder.jsonVersion(true); // Returns: /^(\s*)"version":\s*"([^"]+)"/m Parameters optional indentAware: boolean = true Whether to anchor at line start Return Type RegExp Safe regex pattern for JSON version fields