Skip to content

Commit 5306357

Browse files
authored
Merge pull request #5 from hrschupp/issue3
FIX: removing comment corrupted line endings
2 parents 6530e5f + b791954 commit 5306357

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
@@ -219,8 +219,8 @@ Private Function PrepareCode(ByVal Code As String, ByVal RegEx As RegExp) As Str
219219

220220
' remove comments
221221
'.Pattern = "'(.*)[\r\n]"
222-
.Pattern = "'(.*)(?:[\r\n]|$)"
223-
Code = .Replace(Code, "")
222+
.Pattern = "'(.*)([\r\n]|$)"
223+
Code = .Replace(Code, "$2")
224224

225225
#If DebugPrintEnabled Then
226226
DebugPrint Code, True, "PrepareCode- after remove comments"

0 commit comments

Comments
 (0)