danoniplus 38.0.2 → 38.0.3
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 +7 -4
- package/package.json +1 -1
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/11/
|
|
7
|
+
* Revised : 2024/11/11
|
|
8
8
|
*
|
|
9
9
|
* https://github.com/cwtickle/danoniplus
|
|
10
10
|
*/
|
|
11
|
-
const g_version = `Ver 38.0.
|
|
12
|
-
const g_revisedDate = `2024/11/
|
|
11
|
+
const g_version = `Ver 38.0.3`;
|
|
12
|
+
const g_revisedDate = `2024/11/11`;
|
|
13
13
|
|
|
14
14
|
// カスタム用バージョン (danoni_custom.js 等で指定可)
|
|
15
15
|
let g_localVersion = ``;
|
|
@@ -516,6 +516,9 @@ const fuzzyListMatching = (_str, _headerList, _footerList) =>
|
|
|
516
516
|
* @returns {string} 置換後文字列
|
|
517
517
|
*/
|
|
518
518
|
const replaceStr = (_str, _pairs) => {
|
|
519
|
+
if (_str === undefined) {
|
|
520
|
+
return _str;
|
|
521
|
+
}
|
|
519
522
|
let tmpStr = _str;
|
|
520
523
|
_pairs.forEach(pair => tmpStr = String(tmpStr)?.split(pair[0]).join(pair[1]));
|
|
521
524
|
return tmpStr;
|
|
@@ -8264,7 +8267,7 @@ const scoreConvert = (_dosObj, _scoreId, _preblankFrame, _dummyNo = ``,
|
|
|
8264
8267
|
const pos = tmpColorData[1]?.indexOf(`:`);
|
|
8265
8268
|
const patternStr = pos > 0 ? [trimStr(tmpColorData[1].substring(0, pos)), trimStr(tmpColorData[1].substring(pos + 1))]
|
|
8266
8269
|
: [tmpColorData[1]];
|
|
8267
|
-
const patterns = replaceStr(trimStr(patternStr[1]), g_escapeStr.colorPatternName)
|
|
8270
|
+
const patterns = replaceStr(trimStr(patternStr[1] || `Arrow`), g_escapeStr.colorPatternName).split(`/`);
|
|
8268
8271
|
|
|
8269
8272
|
// 矢印番号の組み立て
|
|
8270
8273
|
const colorVals = [];
|