Skip to content

Commit d0fbf5b

Browse files
committed
Initial release v1.7.0 - Zero-hassle regex extraction and validation
- Automatic pattern extraction (literal regex, RegExp constructor, RegExp calls) - Test patterns with detailed results, performance scoring, and ReDoS detection - Validate patterns with comprehensive security analysis - 5 commands: Extract, Test, Validate, Open Settings, Help - 81 unit tests across 5 test files - Demo GIF and updated README with accurate metrics - Removed export/import/reset settings commands - Zero-hassle workflow: automatic pattern detection, no prompts - Updated CHANGELOG for initial release - Added debug configurations (.vscode/launch.json, tasks.json) - English language support (13 languages coming in v1.8.0)
1 parent 0e5d2e6 commit d0fbf5b

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+3386
-4489
lines changed

.vscode/launch.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"version": "0.2.0",
3+
"configurations": [
4+
{
5+
"name": "Run Extension",
6+
"type": "extensionHost",
7+
"request": "launch",
8+
"args": [
9+
"--extensionDevelopmentPath=${workspaceFolder}"
10+
],
11+
"outFiles": [
12+
"${workspaceFolder}/dist/**/*.js"
13+
],
14+
"preLaunchTask": "${defaultBuildTask}",
15+
"sourceMaps": true
16+
},
17+
{
18+
"name": "Extension Tests",
19+
"type": "extensionHost",
20+
"request": "launch",
21+
"args": [
22+
"--extensionDevelopmentPath=${workspaceFolder}",
23+
"--extensionTestsPath=${workspaceFolder}/dist/test/suite/index"
24+
],
25+
"outFiles": [
26+
"${workspaceFolder}/dist/**/*.js"
27+
],
28+
"preLaunchTask": "${defaultBuildTask}"
29+
}
30+
]
31+
}
32+

.vscode/tasks.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"version": "2.0.0",
3+
"tasks": [
4+
{
5+
"type": "shell",
6+
"command": "bun run build",
7+
"group": {
8+
"kind": "build",
9+
"isDefault": true
10+
},
11+
"problemMatcher": "$tsc",
12+
"label": "bun: build",
13+
"detail": "bun run build"
14+
}
15+
]
16+
}
17+

CHANGELOG.md

Lines changed: 78 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -1,43 +1,100 @@
11
# Changelog
22

3-
All notable changes to this extension will be documented here.
3+
All notable changes to Regex-LE will be documented here.
44

55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8-
## [0.1.0] - YYYY-MM-DD
8+
## [1.7.0] - 2025-11-02
99

10-
### Initial Release
10+
### Initial Public Release
1111

12-
First version of {{DisplayName}}-LE.
12+
Regex-LE brings zero-hassle regex extraction and validation to VS Code. Simple, reliable, focused.
1313

14-
#### Features
14+
#### Core Features
1515

16-
- Core extraction functionality
17-
- Safety checks for large files
18-
- Performance monitoring
19-
- Localization support (13+ languages)
20-
- Enterprise-grade error handling
21-
- Status bar integration
22-
- Configurable settings
16+
- **Automatic Pattern Extraction** - Automatically finds all regex patterns in your code:
17+
- Literal regex patterns (`/pattern/flags`)
18+
- `new RegExp()` constructor calls
19+
- `RegExp()` function calls
20+
- Automatic deduplication of identical patterns
21+
- **Pattern Testing** - Test extracted patterns against file content with detailed results:
22+
- Match results with positions and groups
23+
- Execution time metrics
24+
- Performance scoring
25+
- ReDoS vulnerability warnings
26+
- **Pattern Validation** - Validate all patterns automatically:
27+
- Syntax validation
28+
- ReDoS detection with severity levels
29+
- Performance analysis
30+
- Comprehensive validation reports
31+
32+
#### Supported File Types
33+
34+
Regex-LE works universally on any text file format:
35+
36+
- **Programming Languages**: JavaScript, TypeScript, Python, Ruby, Go, Rust, Java, C/C++, C#, PHP, Swift, Kotlin
37+
- **Data Formats**: JSON, YAML, TOML, XML, CSV
38+
- **Web**: HTML, CSS, SCSS, LESS, Sass
39+
- **Configuration**: .env, .ini, .cfg, .conf
40+
- **Documentation**: Markdown, Plain Text, Log Files
41+
- **Shell Scripts**: Bash, Zsh, PowerShell, Batch
42+
43+
#### Advanced Features
44+
45+
- **ReDoS Detection** - Built-in vulnerability detection:
46+
- Nested quantifier detection
47+
- Exponential backtracking analysis
48+
- Complexity estimation
49+
- Security warnings before execution
50+
- **Performance Scoring** - Actionable optimization recommendations:
51+
- Execution time analysis
52+
- Pattern complexity scoring
53+
- Optimization suggestions
54+
- **Safety Features**:
55+
- Binary file detection
56+
- File size warnings (configurable thresholds)
57+
- Match limits to prevent excessive memory usage
58+
- Automatic safety checks
59+
60+
#### Commands
61+
62+
- **Extract Matches** - Automatically extract all regex patterns (zero prompts)
63+
- **Test Regex** (`Cmd/Ctrl+Alt+R`) - Test patterns with detailed results
64+
- **Validate Pattern** - Validate all patterns and check for ReDoS vulnerabilities
65+
- **Open Settings** - Quick access to configuration
66+
- **Help & Troubleshooting** - In-editor documentation
67+
68+
#### Configuration
69+
70+
- ReDoS detection (enabled/disabled, max depth)
71+
- Performance scoring (enabled/disabled)
72+
- Preview settings (auto-update, max matches)
73+
- Output preferences (side-by-side, clipboard copy)
74+
- Safety thresholds (file size, output limits)
75+
- Notification levels (silent, important, all)
76+
- Status bar visibility
77+
- Local telemetry logging
2378

2479
#### Infrastructure
2580

26-
- TypeScript strict mode
27-
- Comprehensive testing with Vitest
28-
- Code quality with Biome
29-
- Full i18n support
30-
- Factory-based service architecture
31-
- Immutable data structures
81+
- **TypeScript** - Strict mode with comprehensive type safety
82+
- **Testing** - 81 unit tests across 5 test files with Vitest
83+
- **Code Quality** - Biome for linting and formatting
84+
- **Localization** - English language support (13 languages coming in v1.8.0)
85+
- **Factory-based Architecture** - Dependency injection and service factories
86+
- **Immutable Data Structures** - All exports frozen with `Object.freeze()`
87+
- **Error Handling** - Enterprise-grade error categorization and recovery
3288

3389
#### Performance
3490

35-
- Efficient processing of large files
91+
- Built-in performance monitoring
92+
- Configurable thresholds
93+
- Efficient pattern extraction
3694
- Memory-optimized operations
37-
- Built-in performance thresholds
3895

3996
#### Privacy
4097

4198
- 100% local processing
4299
- No data collection
43-
- Optional local-only telemetry logging
100+
- Optional local-only telemetry logging to Output panel

0 commit comments

Comments
 (0)