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

When a constant doesn’t match it’s sanitised form, output the quoted constant #54

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

tonyarnold
Copy link
Contributor

This PR fixes the issue raised in #52.

This is useful when the storyboard file name on disk has spaces or other characters that are stripped by the string sanitiser.

Before the changes introduced in this PR:

public enum StoryboardNames: String {
    case ConstantsProperties
    case DebugLog // filename is actually "Debug Log.storyboard"
    case DocumentProperties   
}

After the changes introduced in this PR:

public enum StoryboardNames: String {
    case ConstantsProperties
    case DebugLog = "Debug Log"
    case DocumentProperties
}

…constant

This is useful when the storyboard file name on disk has spaces or other characters that are stripped by the string sanitiser.
@ashfurrow
Copy link
Contributor

Shame this never got merged.

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