Gruntfuggly / auto-snippet

A vscode extension to automatically insert a predefined snippet when a file is created, or an empty file is opened.
Other
14 stars 1 forks source link

Consider using RegEx #13

Closed hyoretsu closed 3 years ago

hyoretsu commented 3 years ago

RegEx'd be better imo. It's used way more frequently and it's also better documented than however many glob patterns there are in micromatch.

Gruntfuggly commented 3 years ago

A regex for matching a file in any folder (or subfolder) would be more complicated than **/*, although I suppose it could be as simple as .*\.js for example.

I'll add it as an option.

Gruntfuggly commented 3 years ago

Latest version now has an option to match on regex.