danoniplus 36.6.3 → 36.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/danoni_main.js CHANGED
@@ -4,12 +4,12 @@
4
4
  *
5
5
  * Source by tickle
6
6
  * Created : 2018/10/08
7
- * Revised : 2024/06/30
7
+ * Revised : 2024/09/25
8
8
  *
9
9
  * https://github.com/cwtickle/danoniplus
10
10
  */
11
- const g_version = `Ver 36.6.3`;
12
- const g_revisedDate = `2024/06/30`;
11
+ const g_version = `Ver 36.6.5`;
12
+ const g_revisedDate = `2024/09/25`;
13
13
 
14
14
  // カスタム用バージョン (danoni_custom.js 等で指定可)
15
15
  let g_localVersion = ``;
@@ -475,8 +475,8 @@ const fuzzyListMatching = (_str, _headerList, _footerList) =>
475
475
  * @param {array} _pairs
476
476
  */
477
477
  const replaceStr = (_str, _pairs) => {
478
- let tmpStr = _str;
479
- _pairs.forEach(pair => tmpStr = tmpStr?.replaceAll(pair[0], pair[1]));
478
+ let tmpStr = _str || ``;
479
+ _pairs.forEach(pair => tmpStr = tmpStr.split(pair[0]).join(pair[1]));
480
480
  return tmpStr;
481
481
  };
482
482
 
@@ -3362,7 +3362,7 @@ const updateImgType = (_imgType, _initFlg = false) => {
3362
3362
  resetImgs(_imgType.name, _imgType.extension);
3363
3363
  reloadImgObj();
3364
3364
  Object.keys(g_imgObj).forEach(key => g_imgObj[key] = `${g_rootPath}${g_imgObj[key]}`);
3365
- if (_imgType[1] === undefined && g_presetObj.overrideExtension !== undefined) {
3365
+ if (_imgType.extension === undefined && g_presetObj.overrideExtension !== undefined) {
3366
3366
  Object.keys(g_imgObj).forEach(key => g_imgObj[key] = `${g_imgObj[key].slice(0, -3)}${g_presetObj.overrideExtension}`);
3367
3367
  }
3368
3368
  if (!g_isFile) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "danoniplus",
3
- "version": "36.6.3",
3
+ "version": "36.6.5",
4
4
  "description": "Dancing☆Onigiri (CW Edition) - Web-based Rhythm Game",
5
5
  "main": "index.js",
6
6
  "scripts": {