mirror of
https://github.com/pacnpal/Roo-Code.git
synced 2025-12-20 12:21:13 -05:00
Fixes
This commit is contained in:
@@ -14,6 +14,7 @@ function detectCodeOmission(originalFileContent: string, newFileContent: string)
|
|||||||
const commentPatterns = [
|
const commentPatterns = [
|
||||||
/^\s*\/\//, // Single-line comment for most languages
|
/^\s*\/\//, // Single-line comment for most languages
|
||||||
/^\s*#/, // Single-line comment for Python, Ruby, etc.
|
/^\s*#/, // Single-line comment for Python, Ruby, etc.
|
||||||
|
/^\s*\/\*/, // Multi-line comment opening
|
||||||
/^\s*{\s*\/\*/, // JSX comment opening
|
/^\s*{\s*\/\*/, // JSX comment opening
|
||||||
/^\s*<!--/, // HTML comment opening
|
/^\s*<!--/, // HTML comment opening
|
||||||
]
|
]
|
||||||
|
|||||||
Reference in New Issue
Block a user