Skip to content

Commit

Permalink
fix:修复alias为纯数字时不能使用的错误
Browse files Browse the repository at this point in the history
  • Loading branch information
lazyloong committed Apr 18, 2023
1 parent f5e27e2 commit c247213
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@
"author": "lazyloong",

"minAppVersion": "1.0.0",
"version": "1.5.0"
"version": "1.5.1"
}
2 changes: 1 addition & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ class FuzzyModal extends SuggestModal<MatchData> {
if (file.extension != "md") continue;
let alias = app.metadataCache.getFileCache(file)?.frontmatter?.alias || app.metadataCache.getFileCache(file)?.frontmatter?.aliases;
if (alias) {
alias = alias.split(", ");
alias = typeof alias == "string" ? alias.split(", ") : String(alias).split(", ");
alias.map((p: string) =>
this.items.push({
index: index++,
Expand Down

0 comments on commit c247213

Please sign in to comment.