Skip to content

Commit

Permalink
Merge pull request #33 from JunNishimura/feature/handle_with_uppercas…
Browse files Browse the repository at this point in the history
…e_key_names

handle with uppercase key names
  • Loading branch information
JunNishimura authored Oct 5, 2024
2 parents 4b793b4 + b318013 commit 76e9bac
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion parser/parser.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ package parser
import (
"fmt"
"strconv"
"strings"

"github.com/JunNishimura/jsop/ast"
"github.com/JunNishimura/jsop/lexer"
Expand Down Expand Up @@ -144,7 +145,7 @@ func (p *Parser) parseKey() (*ast.StringLiteral, error) {

return &ast.StringLiteral{
Token: keyToken,
Value: keyToken.Literal,
Value: strings.ToLower(keyToken.Literal),
}, nil
}

Expand Down

0 comments on commit 76e9bac

Please sign in to comment.