This commit is contained in:
Liang Ding 2022-09-16 22:59:24 +08:00
parent 395d5e6583
commit 61453ad84b
No known key found for this signature in database
GPG key ID: 136F30F901A2231D
2 changed files with 65 additions and 46 deletions

View file

@ -195,6 +195,9 @@ func SearchAssetsByName(keyword string) (ret []*cache.Asset) {
func GetAssetAbsPath(relativePath string) (absPath string, err error) {
relativePath = strings.TrimSpace(relativePath)
if strings.Contains(relativePath, "?") {
relativePath = relativePath[:strings.Index(relativePath, "?")]
}
notebooks, err := ListNotebooks()
if nil != err {
err = errors.New(Conf.Language(0))