- VS Code Version: 1.55.2
- OS Version: Mac OS 11.3
Steps to Reproduce:
- Add the following code snippet
"Test Snippet": { "prefix": "test-snippet", "body": "${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}" }
- Create a file
foo-42-bar.txt
- Run the test snippet
- Note the output is
FooBar — it should be Foo42Bar
This relates to Issue #38459, and Pull Request #59758.
I believe it's a simple matter of changing [a-z] to [a-z0-9] in _toPascalCase()?
Does this issue occur when all extensions are disabled?: Yes
Steps to Reproduce:
"Test Snippet": { "prefix": "test-snippet", "body": "${TM_FILENAME_BASE/(.*)/${1:/pascalcase}/g}" }foo-42-bar.txtFooBar— it should beFoo42BarThis relates to Issue #38459, and Pull Request #59758.
I believe it's a simple matter of changing
[a-z]to[a-z0-9]in_toPascalCase()?Does this issue occur when all extensions are disabled?: Yes