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

Minor fixes in testing and handling crlf correctly #405

Open
wants to merge 1 commit into
base: develop
Choose a base branch
from

Conversation

nitinmotgi
Copy link
Contributor

No description provided.

Copy link
Contributor

@albertshau albertshau left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can you open a jira for this so that we have a record of the fix?

@@ -56,7 +56,7 @@ public MigrateToV2(@Nullable String recipe, String delimiter) {
}

public MigrateToV2(String recipe) {
this(recipe, "\n");
this(recipe, "\\r?\\n");
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've seen recipes with \r\n in the past and they seemed to work. Were only some directives stripping the \r or something?

String[] recipe = new String[] {
"parse-as-csv :body '\t' true;\r\ndrop :body;\r\n"
};
TestingRig.compileSuccess(recipe);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

shouldn't just test that it compiles (didn't it compile successfully before?) Should test that the directives are parsed into the exact strings that are expected.

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

Successfully merging this pull request may close these issues.

2 participants