Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
VCCI-News
Project
Project
Details
Activity
Releases
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
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Văn Hoàng
VCCI-News
Commits
866bd3a3
Commit
866bd3a3
authored
Aug 06, 2026
by
Lê Bảo Hồng Đức
☄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix
parent
9679ec88
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
index.ts
src/links/index.ts
+2
-1
No files found.
src/links/index.ts
View file @
866bd3a3
...
@@ -6,7 +6,8 @@ const LEGACY_MEDIA_HOSTS = new Set([
...
@@ -6,7 +6,8 @@ const LEGACY_MEDIA_HOSTS = new Set([
"vccihcm.vn"
,
"vccihcm.vn"
,
]);
]);
const
normalizeOrigin
=
(
value
?:
string
|
null
)
=>
value
?.
trim
().
replace
(
/
\/
+$/
,
""
)
||
""
;
const
normalizeOrigin
=
(
value
?:
string
|
null
)
=>
value
?.
trim
().
replace
(
/
\/
+$/
,
""
).
replace
(
/
\/
api
\/
v
\d
+
\.\d
+$/
,
""
)
||
""
;
const
extractUploadPath
=
(
pathname
:
string
)
=>
{
const
extractUploadPath
=
(
pathname
:
string
)
=>
{
const
markers
=
[
"/api/uploads/"
,
"/uploads/"
,
"/images/"
,
"/wp-content/uploads/"
];
const
markers
=
[
"/api/uploads/"
,
"/uploads/"
,
"/images/"
,
"/wp-content/uploads/"
];
...
...
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