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

Fix detection when string has equal amount of tabs and spaces #24

Merged
merged 3 commits into from Apr 29, 2019

Conversation

FR6
Copy link
Contributor

@FR6 FR6 commented Mar 22, 2019

Based on #15 and #21 I refactored the code and added a new test to fix the issues.

Previously when the number of spaces was the same as the number of tabs, spaces had precedence but now the algorithm will use the first with the most occurence/weight.

Fixes #15

@sindresorhus sindresorhus changed the title fix #15 Fix detection when string has equal amount of tabs and spaces Apr 29, 2019
@sindresorhus sindresorhus merged commit b45b213 into sindresorhus:master Apr 29, 2019
@sindresorhus
Copy link
Owner

Thanks for fixing :)

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.

Mixup with files with equal amount of tabs and spaces
2 participants