fix: _ is not parsed in template variable name

This commit is contained in:
Aikawa Yataro 2025-01-21 06:19:54 +00:00
parent 6482ef227a
commit 5a036b86bc
No known key found for this signature in database
GPG key ID: 1C5D95FB10179404

View file

@ -313,7 +313,7 @@ namespace SourceGit.Models
private static bool IsNameChar(char c)
{
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9');
return (c >= 'a' && c <= 'z') || (c >= 'A' && c <= 'Z') || (c >= '0' && c <= '9') || c == '_';
}
// (?) notice or log if variable is not found