Skip to content

Commit

Permalink
Merge pull request #8 from giginet/support-xcode-11
Browse files Browse the repository at this point in the history
Support Xcode 11
  • Loading branch information
dduan authored Jun 25, 2019
2 parents 7998f88 + 7853794 commit 3dd0704
Show file tree
Hide file tree
Showing 4 changed files with 17 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .swiftpm/xcode/package.xcworkspace/contents.xcworkspacedata

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>IDEDidComputeMac32BitWarning</key>
<true/>
</dict>
</plist>
1 change: 1 addition & 0 deletions Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ import PackageDescription

let package = Package(
name: "TOMLDecoder",
platforms: [.iOS(.v9), .tvOS(.v9), .watchOS(.v2), .macOS(.v10_10)],
products: [
.library(
name: "TOMLDecoder",
Expand Down
2 changes: 1 addition & 1 deletion Sources/TOMLDecoder/TOMLDecoder.swift
Original file line number Diff line number Diff line change
Expand Up @@ -1200,7 +1200,7 @@ extension TOMLDecoder.KeyDecodingStrategy {
let leadingUnderscoreRange = stringKey.startIndex..<firstNonUnderscore
let trailingUnderscoreRange = stringKey.index(after: lastNonUnderscore)..<stringKey.endIndex

var components = stringKey[keyRange].split(separator: "_")
let components = stringKey[keyRange].split(separator: "_")
let joinedString : String
if components.count == 1 {
// No underscores in key, leave the word as is - maybe already camel cased
Expand Down

0 comments on commit 3dd0704

Please sign in to comment.