Skip to content

Commit 0062117

Browse files
committed
Fix media snippet markup insertion and clean up exclamation marks in file names #875
1 parent 1d485ad commit 0062117

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
### 🐞 Fixes
1414

1515
- [#874](https://github.com/estruyf/vscode-front-matter/issues/874): Fix media snippet markup insertion to article content's
16+
- [#875](https://github.com/estruyf/vscode-front-matter/issues/875): Clean up the exclamation marks from the file name when creating new content
1617

1718
## [10.5.0] - 2024-10-21 - [Release notes](https://beta.frontmatter.codes/updates/v10.5.0)
1819

src/helpers/Sanitize.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
const illegalRe = /[/?<>\\:*|"]/g;
1+
const illegalRe = /[/?<>\\:*|"!]/g;
22
// eslint-disable-next-line no-control-regex
3-
const controlRe = /[\x00-\x1F\x80-\x9F]/g;
3+
const controlRe = /[\x00-\x1f\x80-\x9f]/g;
44
const reservedRe = /^\.+$/;
55
const windowsReservedRe = /^(con|prn|aux|nul|com[0-9]|lpt[0-9])(\..*)?$/i;
66
const windowsTrailingRe = /[. ]+$/;

0 commit comments

Comments
 (0)