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

Feature: Options Parameter #47

Merged
merged 2 commits into from
Sep 6, 2020
Merged

Feature: Options Parameter #47

merged 2 commits into from
Sep 6, 2020

Conversation

thadeucity
Copy link
Contributor

@thadeucity thadeucity commented Sep 5, 2020

Following Issue #39

Inserted the option to select consistent dimension for short-ids

Also inserted an option to remove repeated characters in alphabets

Way better than my last Pull Request, now you can choose to have Consistent Length or not, leaving the original flow unchanged.

If you find anything wrong, please let me know.

Inserted the option to select consistent dimension for short-ids

Also inserted an option to remove repeated characters in alphabets
@oculus42
Copy link
Owner

oculus42 commented Sep 5, 2020

I'm not sure about the prevent repeat behavior. Unlike the padding, it creates a condition where two instances may translate something differently. I would be more inclined to have the library throw an error if you try to use an alphabet with repeating characters without setting an explicit repeat flag rather than have it silently change the alphabet.

The code will not silently change the alphabet

Now invalid inputs will throw an Error
@oculus42 oculus42 merged commit 9e026cb into oculus42:master Sep 6, 2020
@oculus42
Copy link
Owner

oculus42 commented Sep 6, 2020

Because it's irrevocably ES6, I'm going to go ahead and convert the rest before publishing a 4.0.0 version, but am working on it right now.

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