Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

#964 solution#965

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
CasparZheng wants to merge1 commit intoSwiftyJSON:feature/initJsonString
base:feature/initJsonString
Choose a base branch
Loading
fromCasparZheng:initJsonString

Conversation

@CasparZheng
Copy link

@CasparZhengCasparZheng commentedMay 26, 2018
edited
Loading

The PR should summarize what was changed and why. Here are some questions to
help you if you're not sure:

  • What behavior was changed?
    compatible with url keyword '#'

  • What code was refactored / updated to support this change?
    url encode characterSet have been changed
    update the url test in StringTests.swift

  • What issues are related to this PR? Or why was this change introduced?
    issuejson.url method returned url encoded the '#' #964

Checklist - While not every PR needs it, new features should consider this list:

  • Does this have tests?
    yes
  • Does this have documentation?
    no
  • Does this break the public API (Requires major version bump)?
    no
  • Is this a new feature (Requires minor version bump)?
    no

func testURL(){
letjson=JSON("http://github.com")
XCTAssertEqual(json.URL!,URL(string:"http://github.com")!)

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Trailing Whitespace Violation: Lines should not have trailing whitespace. (trailing_whitespace)

returnFoundation.URL(string: encodedString_)
}else{
returnnil
}else{

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others.Learn more.

Statement Position Violation: Else and catch should be on the same line, one space after the previous declaration. (statement_position)

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

1 more reviewer

@houndci-bothoundci-bothoundci-bot left review comments

Reviewers whose approvals may not affect merge requirements

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

2 participants

@CasparZheng@houndci-bot

[8]ページ先頭

©2009-2025 Movatter.jp