Skip to content

Commit

Permalink
Merge pull request #170 from mk3008/169-character-string-judgment-fai…
Browse files Browse the repository at this point in the history
…ls-when-uppercase-letters-are-used-1

recognize uppercase letters as strings
  • Loading branch information
mk3008 authored Nov 16, 2022
2 parents 8c4aee1 + 2a8d0d0 commit 1b44936
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/SqModel/Extension/stringExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public static bool IsLogicalOperator(this string source)
public static bool IsLetter(this string source)
{
if (source.Length == 0) return false;
var c = source.ToCharArray().First();
var c = source.ToLower().ToCharArray().First();
return SqlParser.LetterChars.Where(x => x == c).Any();
}

Expand Down
2 changes: 1 addition & 1 deletion src/SqModel/SqModel.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<PackageProjectUrl>https://github.com/mk3008/SqModel</PackageProjectUrl>
<AssemblyVersion></AssemblyVersion>
<FileVersion></FileVersion>
<Version>0.8.11</Version>
<Version>0.8.12</Version>
<PackageTags>Sql;QueryBuilder;SqlParser;SqlBuilder;</PackageTags>
<PackageReadmeFile>README.md</PackageReadmeFile>
<Description>Parse and build select queries.</Description>
Expand Down

0 comments on commit 1b44936

Please sign in to comment.