瀏覽代碼

fix parenthesis issue (see #802)

Gildas 4 年之前
父節點
當前提交
4fa9c3fd9a
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      cli/single-file-cli-api.js

+ 1 - 1
cli/single-file-cli-api.js

@@ -291,7 +291,7 @@ function getFilename(filename, options, index = 1) {
 		const regExpMatchExtension = /(\.[^.]+)$/;
 		const matchExtension = newFilename.match(regExpMatchExtension);
 		if (matchExtension && matchExtension[1]) {
-			newFilename = newFilename.replace(regExpMatchExtension, " (" + index + matchExtension[1]) + ")";
+			newFilename = newFilename.replace(regExpMatchExtension, " (" + index + ")" + matchExtension[1]);
 		} else {
 			newFilename += " (" + index + ")";
 		}