Skip to content

add stringNonEmpty property to string extension#1027

Open
0xIce wants to merge 1 commit intoSwiftyJSON:masterfrom
0xIce:master
Open

add stringNonEmpty property to string extension#1027
0xIce wants to merge 1 commit intoSwiftyJSON:masterfrom
0xIce:master

Conversation

@0xIce
Copy link

@0xIce 0xIce commented Apr 22, 2019

What was changed and why:

  • Sometimes string from json is emtpy, aka "", and app want to handle empty same as nil. The stringNonEmpty property will return nil when got an empty string from json.

Checklist

  • Does this have tests?

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.

1 participant