You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In case you missed it, the second use of $1 was not transformed properly, having only the first transform applied to it ${1:/upcase}, where as the second transform ${2:/upcase} was not applied at all, resulting in the string My-awesome-module instead of MyAwesomeModule
This is not the case for normal transforms (non-optional), e.g:
//TM_FILENAME_BASE: `myfile`[//Upcase the first 2 letters"function ${1:${TM_FILENAME_BASE/^(.)(.)/${1:/upcase}${2:/upcase}/g}} () {}","module.exports = $1;"]//Result:functionMYfile(){}module.exports=MYfile;
The text was updated successfully, but these errors were encountered:
Related to #36089, transforms are working for optional matches, however, when reusing the same variable (e.g. $1) only the first transform is applied.
Given the following simplified example:
In case you missed it, the second use of $1 was not transformed properly, having only the first transform applied to it
${1:/upcase}
, where as the second transform${2:/upcase}
was not applied at all, resulting in the stringMy-awesome-module
instead ofMyAwesomeModule
This is not the case for normal transforms (non-optional), e.g:
The text was updated successfully, but these errors were encountered: