Skip to content

Improved validateAndCorrectCharacters sample snippet #815

Description

@kober32

func validateAndCorrectCharacters(_ string: String) -> String? {

This snippet is confusing because it looks like you can paste whole activation code WITH - characters and it will correct them, but since the - is not a valid character, it fails.

The snippet should mention that the code needs to be pasted without - (on indexes 4,9,14) or remove them directly in the snippet.

The same issue is on Android

Metadata

Metadata

Assignees

Labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions