Skip to content

Commit ddcee85

Browse files
committed
feat: Expanded support of text patterns in util.go
The code changes are related to the enhanced functionality of the 'util.go' file. The 'patterns' variable has been updated to include a wider array of text patterns 📝. This will help the `formatResponse` function to handle more types of languages and scripts, improving the overall versatility of our application. 🚀💡👏
1 parent 4166781 commit ddcee85

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

util.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -167,7 +167,7 @@ func getUserName() {
167167
}
168168
}
169169

170-
var patterns = []string{"```bash", "```", "pattern3"}
170+
var patterns = []string{"```bash", "```plaintext","```diff", "```", "```python", "```javascript", "```go", "```java", "```c", "```cpp", "```csharp", "```ruby", "```php", "```html", "```css", "```json", "```xml", "```yaml", "```md", "```markdown", "```sql", "```shell", "```powershell", "```dockerfile", "```makefile", "```ini", "```apacheconf", "```nginx", "```git", "```vim", "```vimscrip"}
171171

172172
func formatResponse(response string) string {
173173
for _, pattern := range patterns {

0 commit comments

Comments
 (0)