Skip to content
This repository was archived by the owner on Jun 16, 2018. It is now read-only.

Conversation

@ThinkRedstone
Copy link

@ThinkRedstone ThinkRedstone commented Aug 20, 2017

I'm not sure the test case is necessary, but I wrote it; Also notice that the message above the custom delim field is really long and spans, which is why it a. is not a label and b. looks bad. So it should probably be shortened.

Solves issue #252 .

Copy link
Collaborator

@poelstra poelstra left a comment

Choose a reason for hiding this comment

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

Thanks for adding a test! 💯

There are a lot of unrelated changes due to the whitespace. Would be better to put these in a separate commit. (Note that with e.g. git gui, you can stage (and thus commit) individual lines, which makes this very easy to do.)

}
lines = lines.map(function(line) {
lines = lines.map(function (line) {
if ($scope.useCustomDelimiter) {
Copy link
Collaborator

Choose a reason for hiding this comment

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

Unnecessarily complex: just make $scope.delimiter the tab character by default, and always split on $scope.delimiter then.

<p>
Use custom delimiter? (Default is tab, the delimiter used when pasting from excel) <br/>
<input type="checkbox" ng-model="useCustomDelimiter">
<input type="text" ng-model="delimiter">
Copy link
Collaborator

Choose a reason for hiding this comment

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

This box should be disabled if useCustomDelimiter is false.
Or, make it a radio-button with Tab (Excel) as first option, and Custom [input field] as second?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants