Skip to content

Commit

Permalink
Fix media snippet markup insertion and clean up exclamation marks in …
Browse files Browse the repository at this point in the history
…file names #875
  • Loading branch information
estruyf committed Oct 23, 2024
1 parent 1d485ad commit 0062117
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)

Expand Down
4 changes: 2 additions & 2 deletions src/helpers/Sanitize.ts
Original file line number Diff line number Diff line change
@@ -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 = /[. ]+$/;
Expand Down

0 comments on commit 0062117

Please sign in to comment.