File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed
Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change @@ -230,7 +230,7 @@ string stripComments(string str)
230230 i++ ; // Skip '`'
231231 ret~= str[left.. i];
232232 }
233- if (str[i] == ' "' )
233+ else if (str[i] == ' "' )
234234 {
235235 size_t left = i;
236236 i++ ;
@@ -250,6 +250,12 @@ string stripComments(string str)
250250 while (i < length && str[i] != ' \n ' )
251251 i++ ;
252252 }
253+ else if (str[i] == ' -' && i + 1 < length && str[i+ 1 ] == ' -' ) // Single line --
254+ {
255+ i+= 2 ;
256+ while (i < length && str[i] != ' \n ' )
257+ i++ ;
258+ }
253259 // Single line #
254260 else if (str[i] == ' #' )
255261 {
Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ import redub.package_searching.api;
88
99
1010// /vX.X.X
11- enum RedubVersionOnly = " v1.21.4 " ;
11+ enum RedubVersionOnly = " v1.21.5 " ;
1212// /Redub vX.X.X
1313enum RedubVersionShort = " Redub " ~ RedubVersionOnly;
1414// /Redub vX.X.X - Description
You can’t perform that action at this time.
0 commit comments