Merge branch 'dev' of github.com:estruyf/vscode-front-matter into dev

This commit is contained in:
Elio Struyf
2023-11-17 18:44:29 +01:00
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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('');
}
}