Fix media snippet markup insertion and clean up exclamation marks in file names #875

This commit is contained in:
Elio Struyf
2024-10-23 12:17:01 +02:00
parent 1d485adbca
commit 0062117c3b
2 changed files with 3 additions and 2 deletions

View File

@@ -13,6 +13,7 @@
### 🐞 Fixes
- [#874](https://github.com/estruyf/vscode-front-matter/issues/874): Fix media snippet markup insertion to article content's
- [#875](https://github.com/estruyf/vscode-front-matter/issues/875): Clean up the exclamation marks from the file name when creating new content
## [10.5.0] - 2024-10-21 - [Release notes](https://beta.frontmatter.codes/updates/v10.5.0)

View File

@@ -1,6 +1,6 @@
const illegalRe = /[/?<>\\:*|"]/g;
const illegalRe = /[/?<>\\:*|"!]/g;
// eslint-disable-next-line no-control-regex
const controlRe = /[\x00-\x1F\x80-\x9F]/g;
const controlRe = /[\x00-\x1f\x80-\x9f]/g;
const reservedRe = /^\.+$/;
const windowsReservedRe = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;
const windowsTrailingRe = /[. ]+$/;