mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-06 01:12:03 +00:00
[wiki markdown file] modified links in the file content (#4517)
* only modified links of inserted files from the current library
This commit is contained in:
@@ -714,6 +714,11 @@ export const Utils = {
|
||||
}
|
||||
},
|
||||
|
||||
isInternalFileLink: function(url, repoID) {
|
||||
var re = new RegExp(serviceURL + '/lib/' + repoID + '/file.*');
|
||||
return re.test(url);
|
||||
},
|
||||
|
||||
isInternalMarkdownLink: function(url, repoID) {
|
||||
var re = new RegExp(serviceURL + '/lib/' + repoID + '.*\.md$');
|
||||
return re.test(url);
|
||||
|
Reference in New Issue
Block a user