Skip to content
This repository has been archived by the owner on Feb 21, 2019. It is now read-only.

Commit

Permalink
Hyphen to Underscore for bundle name
Browse files Browse the repository at this point in the history
  • Loading branch information
mukeshydv committed Aug 21, 2017
1 parent a712a25 commit 4ed75c2
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion JSONParserSwift.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'JSONParserSwift'
s.version = '1.1.2'
s.version = '1.1.3'
s.summary = 'Parse your JSON data directly to Swift object.'

s.homepage = 'https://github.com/mukeshydv/JSONParserSwift'
Expand Down
Binary file not shown.
1 change: 1 addition & 0 deletions Source/ParsableModel.swift
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ open class ParsableModel: NSObject, JSONParsable {
}

dynamicType = dynamicType.replacingOccurrences(of: " ", with: "_")
dynamicType = dynamicType.replacingOccurrences(of: "-", with: "_")

if let dynamicClass = NSClassFromString(dynamicType) as? JSONParsable.Type {
return dynamicClass
Expand Down

0 comments on commit 4ed75c2

Please sign in to comment.