Merge pull request #4197 from dvai/master

fix some bugs
This commit is contained in:
zadam 2023-08-30 00:19:53 +02:00 committed by GitHub
commit 23848526c0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -105,7 +105,7 @@ export default class CalendarWidget extends RightDropdownButtonWidget {
if (dateNoteId) {
$newDay.addClass('calendar-date-exists');
$newDay.attr("href", `#root/dateNoteId`);
$newDay.attr("href", `#root/${dateNoteId}`);
}
if (this.isEqual(this.date, this.activeDate)) {

View File

@ -281,7 +281,7 @@ function removeDiacritic(str) {
if (!str) {
return "";
}
str = str.toString();
return str.normalize("NFD").replace(/\p{Diacritic}/gu, "");
}