Fix trailing comma (#247)

* added .prettierrc.json
* modified:   .gitignore
* yarn run format
* fix check format workflow
This commit is contained in:
Raghavan
2024-02-11 14:11:16 +05:30
committed by GitHub
parent 6348755d36
commit 862f16b20a
16 changed files with 1318 additions and 1273 deletions

View File

@@ -187,7 +187,7 @@ function cleanFilename(name) {
];
var regExp = new RegExp(
"(_|[^\\w\\d]|^)(" + blockList.join("|") + ")(_|[^\\w\\d]|$)",
"i",
"i"
);
while (regExp.test(name)) {
name = name.replace(regExp, "$1$3");