Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:estruyf/vscode-front-matter into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
estruyf committed Nov 17, 2023
2 parents a6d2fff + f02f994 commit 3383a77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
- [#703](https://github.com/estruyf/vscode-front-matter/issues/703): Fix retrieval of Astro Collections for `pnpm` projects
- [#704](https://github.com/estruyf/vscode-front-matter/issues/704): Fix `zod` schema script for optional fields
- [#707](https://github.com/estruyf/vscode-front-matter/issues/707): Fix `clearEmpty` issue with `draft` and `boolean` fields which are by default set to `true`
- [#711](https://github.com/estruyf/vscode-front-matter/issues/711): Fix in character mapping in the slug field
- [#712](https://github.com/estruyf/vscode-front-matter/issues/712): Keep the search context when deleting media files

## [9.3.1] - 2023-10-27
Expand Down
2 changes: 1 addition & 1 deletion src/helpers/SlugHelper.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,6 @@ export class SlugHelper {
*/
private static replaceCharacters(value: string) {
const characters = [...value];
return characters.map((c) => charMap[c] || c).join('');
return characters.map((c) => (typeof charMap[c] === 'string' ? charMap[c] : c)).join('');
}
}

0 comments on commit 3383a77

Please sign in to comment.