Open DecimalTurn opened 1 month ago
One way to fix this would be to replace:
with:
lang = ""
# Loop over the elements of L starting from the end and append the elements until we reach the number of lines
for i in range(len(L) - 1, -1, -1):
if L[i].isdigit():
break
if lang:
lang = L[i] + " " + lang
else:
lang = L[i]
lpct.append((lang, L[0][:-1]))
Example language: "Visual Basic .NET" Example repo: https://github.com/narekye/VB.NET
Expected output: "Visual Basic .NET" Actual output: ".NET"