FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeboost/src/lib/stringHelpers.ts at main · permafrost-dev/codeboost · GitHub
Uh oh!
There was an error while loading.
Please reload this page
.
permafrost-dev
/
codeboost
Public
Uh oh!
There was an error while loading.
Please reload this page
.
Notifications
You must be signed in to change notification settings
Fork
0
Star
16
Code
Issues
0
Pull requests
24
Actions
Security and quality
0
Insights
Additional navigation options
Code
Issues
Pull requests
Actions
Security and quality
Insights
Expand file tree
Breadcrumbs
codeboost
/
src
/
lib
/
stringHelpers.ts
Copy path
More file actions
More file actions
Latest commit
History
History
History
12 lines (10 loc) · 342 Bytes
Breadcrumbs
codeboost
/
src
/
lib
/
stringHelpers.ts
Copy path
File metadata and controls
12 lines (10 loc) · 342 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
11
12
export
function
parseFullRepositoryName
(
fullRepositoryName
:
string
)
:
{
owner
:
string
;
name
:
string
}
{
if
(
!
fullRepositoryName
.
includes
(
'/'
)
)
{
throw
new
Error
(
`Invalid repository name (missing "/")`
)
;
}
const
parts
=
fullRepositoryName
.
split
(
'/'
)
;
return
{
owner
:
parts
[
0
]
,
name
:
parts
[
1
]
,
}
;
}
Back
|
FazBrowse Home
|
New Git URL