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

String trim fix for missing final character #2

Merged
merged 1 commit into from Feb 19, 2015

Conversation

ilovezfs
Copy link
Contributor

This fixes the off-by-one error reported by ununnilium in the forum.

The final character of model and the final character of serial number
were being deleted. For instance,

Model: WDC WD30EFRX-68EUZN0
Serial Number: WD-WMC4N0H2JLJP

should become WDC_WD30EFRX-68EUZN0-WD-WMC4N0H2JLJP not
WDC_WD30EFRX-68EUZN-WD-WMC4N0H2JLJ.

This fixes the off-by-one error reported by ununnilium in the forum.

The final character of model and the final character of serial number
were being deleted. For instance,

Model:          WDC WD30EFRX-68EUZN0
Serial Number:  WD-WMC4N0H2JLJP

should become WDC_WD30EFRX-68EUZN0-WD-WMC4N0H2JLJP not
WDC_WD30EFRX-68EUZN-WD-WMC4N0H2JLJ.
@cbreak-black cbreak-black merged commit 6776d46 into cbreak-black:master Feb 19, 2015
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.

None yet

2 participants