Fix: prevent duplicating hyphen when parsing no area tag that is negative like -leebo
#191
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
https://github.com/tom5079/Pupil/blob/master/app/src/main/java/xyz/quaver/pupil/types/Tags.kt#L31
https://github.com/tom5079/Pupil/blob/master/app/src/main/java/xyz/quaver/pupil/types/Tags.kt#L38
콜론(:)이 포함되어 있지 않은 태그는
when절에서else로 가는데,tag를 사용했기 때문에-leebo를 파싱할 때Tag(null, "-leebo", true)가 되어버림.이를 substring(1)로 하이픈을 땐
it[0]의 사용으로 해결함.