Skip to content

Conversation

@ronkorving
Copy link

@ronkorving ronkorving commented Apr 1, 2021

Fixes #20

This also:

  • cleans up the test suite a bit (I added some tests, made them all fail more verbosely and categorized them).
  • fixes numbers in the readme to be string instead of integer.

});
};
var number = function(number) {
number = ('000' + number).slice(-3);
Copy link
Author

@ronkorving ronkorving Apr 2, 2021

Choose a reason for hiding this comment

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

I could've used String(number).padStart(3, '0'), but that requires Node 8. I don't know which version of Node you're intending to support, not to mention browsers, but given that all the JavaScript I see here is fairly legacy, I went with the safe option.

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.

Cannot lookup AUD by number

1 participant