Skip to content

Commit

Permalink
Prefer lf line endings for locales.json
Browse files Browse the repository at this point in the history
  • Loading branch information
ArchLeaders committed Jan 30, 2025
1 parent fb8ed6e commit 133678c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
* text=auto

# Ensure locales.json uses CRLF line endings
locales.json text eol=crlf
locales.json text eol=lf

###############################################################################
# Set default behavior for command prompt diff.
Expand Down
2 changes: 1 addition & 1 deletion src/Tkmm.LocaleGenerator/LocaleGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ private static bool IsKey(ReadOnlySpan<char> line)
return false;
}

return line.Slice(0, 5) is " \"" && line[line.Length - 2] is '{';
return line.Slice(0, 5) is " \"" && line[line.Length - 1] is '{';
}

private static string GetKey(string line)
Expand Down

0 comments on commit 133678c

Please sign in to comment.