Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ayudapy
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Julio Hermosa
ayudapy
Commits
e5f3a7a2
Commit
e5f3a7a2
authored
May 19, 2020
by
Julio Hermosa
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Se agrega la función para editar las URLs de las imágenes
parent
9d76d329
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
6 deletions
+14
-6
ayudapy/Static/Format.swift
+14
-6
No files found.
ayudapy/Static/Format.swift
View file @
e5f3a7a2
...
@@ -129,12 +129,20 @@ extension String{
...
@@ -129,12 +129,20 @@ extension String{
}
}
return
month
return
month
}
}
// func convertURL()->String{
func
convertURL
()
->
String
{
// var newURL = self
let
url
=
self
// let subStr:Substring = "_th"
let
subStr
:
Substring
=
"_th"
//
let
start
=
url
.
index
(
url
.
startIndex
,
offsetBy
:
0
)
// return newURL
let
end
=
url
.
index
(
url
.
endIndex
,
offsetBy
:
-
4
)
// }
let
range
=
start
..<
end
let
string
=
String
(
url
[
range
])
let
startExt
=
url
.
index
(
url
.
endIndex
,
offsetBy
:
-
4
)
let
endExt
=
url
.
index
(
url
.
endIndex
,
offsetBy
:
0
)
let
rangeExt
=
startExt
..<
endExt
let
ext
=
String
(
url
[
rangeExt
])
let
returnValue
=
string
+
subStr
+
ext
return
returnValue
}
}
}
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment