We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a078170 commit b3b1001Copy full SHA for b3b1001
index.js
@@ -35,12 +35,12 @@ function posixify(file) {
35
}
36
37
function sanitize(input) {
38
- return basename(input).
39
- replace(extname(input), '').
40
- replace(/[^a-zA-Z_$0-9]+/g, '_').
41
- replace(/^_/, '').
42
- replace(/_$/, '').
43
- replace(/^(\d)/, '_$1');
+ return basename(input)
+ .replace(extname(input), '')
+ .replace(/[^a-zA-Z_$0-9]+/g, '_')
+ .replace(/^_/, '')
+ .replace(/_$/, '')
+ .replace(/^(\d)/, '_$1');
44
45
46
function capitalize(str) {
0 commit comments