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

String parsing: strange behaviour following newline \n #1

Closed
jimblackler opened this issue Oct 15, 2020 · 3 comments
Closed

String parsing: strange behaviour following newline \n #1

jimblackler opened this issue Oct 15, 2020 · 3 comments

Comments

@jimblackler
Copy link

jimblackler commented Oct 15, 2020

If I parse the string

"hello\nworld"

visit is called back with val set to

hello
wwoorrlldd

Tested with version 2.0.0 (and on a main branch build today).

This can be seen with this short test:

public class TestString {
  public static void main(String[] args) {
    new JSON5Parser().setVisitor(new JSON5Visitor() {
      @Override
      public void visit(String val, int line, long offset) {
        System.out.println(val);
      }
    }).parse("\"hello\\nworld\"", "");
  }
}
@brimworks
Copy link
Owner

Oh man, I just now noticed this issue. Thanks for pointing this out. Sorry I'm delayed in responding.

brimworks pushed a commit that referenced this issue Sep 12, 2021
@brimworks
Copy link
Owner

Well, I have fix, but it seems that bintray is shutdown, so I guess I need to figure out a new way to publish the maven artifacts.

@brimworks
Copy link
Owner

Okay, it looks like I successfully published a 2.0.1 version, please let me know if that works.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants