Skip to content

Commit b791954

Browse files
committed
FIX: removing comment corrupted line endings
1 parent 1b2f48a commit b791954

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

source/modules/DeclarationDict.cls

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -217,8 +217,8 @@ Private Function PrepareCode(ByVal Code As String, ByVal RegEx As RegExp) As Str
217217

218218
' remove comments
219219
'.Pattern = "'(.*)[\r\n]"
220-
.Pattern = "'(.*)(?:[\r\n]|$)"
221-
Code = .Replace(Code, "")
220+
.Pattern = "'(.*)([\r\n]|$)"
221+
Code = .Replace(Code, "$2")
222222

223223
#If DebugPrintEnabled Then
224224
DebugPrint Code, True, "PrepareCode- after remove comments"

0 commit comments

Comments
 (0)