Saoud Rizwan пре 1 година
родитељ
комит
364f0921ba
1 измењених фајлова са 1 додато и 0 уклоњено
  1. 1 0
      src/integrations/editor/detect-omission.ts

+ 1 - 0
src/integrations/editor/detect-omission.ts

@@ -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
 	]
 	]