Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double escaping pair node key #639

Closed
aizeNR opened this issue May 6, 2024 · 0 comments
Closed

Double escaping pair node key #639

aizeNR opened this issue May 6, 2024 · 0 comments
Labels

Comments

@aizeNR
Copy link

aizeNR commented May 6, 2024

Hi, in commit add escaping pair node key, but str.String() already uses this and it causes double escaping.

Example https://go.dev/play/p/WTkUxu5yM4e

package main

import (
	"fmt"

	"github.com/expr-lang/expr/parser"
)

func main() {
	tree, err := parser.Parse(`{"9": 10}`)
	if err != nil {
		fmt.Print(err.Error())
		return
	}

	fmt.Print(tree.Node.String())
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants