This repository has been archived by the owner on Sep 24, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: 🐛 only show link email and phone number as clickable (#31)
* fix: 🐛 trim all blank for tel url format * fix: 🐛 only show link email and phone number as clickable
- Loading branch information
1 parent
399f3b2
commit 395552d
Showing
6 changed files
with
71 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 13 additions & 0 deletions
13
Tests/SAPCAITests/Foundation/Extensions/SimpleTypeExtensionTests.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
@testable import SAPCAI | ||
import XCTest | ||
|
||
final class SimpleTypeExtensionTests: XCTestCase { | ||
/// String Extension | ||
func testStringtoTelString() { | ||
var telString = "tel: +86 13463637643 " | ||
XCTAssertEqual(telString.toTelURLString(), "tel:+8613463637643") | ||
|
||
telString = " +1 650 44 79 539 " | ||
XCTAssertEqual(telString.toTelURLString(), "tel:+16504479539") | ||
} | ||
} |