webgal-parser 4.4.7 → 4.4.9-fix1
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.
|
@@ -134,7 +134,7 @@ function argsParser(argsRaw, assetSetter) {
|
|
|
134
134
|
argValue = undefined;
|
|
135
135
|
}
|
|
136
136
|
// 判断是不是语音参数
|
|
137
|
-
if (argName.match(/.ogg|.mp3|.wav/)) {
|
|
137
|
+
if (argName.toLowerCase().match(/.ogg|.mp3|.wav/)) {
|
|
138
138
|
returnArrayList.push({
|
|
139
139
|
key: "vocal",
|
|
140
140
|
value: assetSetter(e, fileType.vocal)
|
package/build/es/index.js
CHANGED
|
@@ -130,7 +130,7 @@ function argsParser(argsRaw, assetSetter) {
|
|
|
130
130
|
argValue = undefined;
|
|
131
131
|
}
|
|
132
132
|
// 判断是不是语音参数
|
|
133
|
-
if (argName.match(/.ogg|.mp3|.wav/)) {
|
|
133
|
+
if (argName.toLowerCase().match(/.ogg|.mp3|.wav/)) {
|
|
134
134
|
returnArrayList.push({
|
|
135
135
|
key: "vocal",
|
|
136
136
|
value: assetSetter(e, fileType.vocal)
|
|
@@ -133,7 +133,7 @@ var webgalParser = (function (exports) {
|
|
|
133
133
|
argValue = undefined;
|
|
134
134
|
}
|
|
135
135
|
// 判断是不是语音参数
|
|
136
|
-
if (argName.match(/.ogg|.mp3|.wav/)) {
|
|
136
|
+
if (argName.toLowerCase().match(/.ogg|.mp3|.wav/)) {
|
|
137
137
|
returnArrayList.push({
|
|
138
138
|
key: "vocal",
|
|
139
139
|
value: assetSetter(e, fileType.vocal)
|
package/package.json
CHANGED
|
@@ -1,16 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "webgal-parser",
|
|
3
|
-
"version": "4.4.
|
|
3
|
+
"version": "4.4.9-fix1",
|
|
4
4
|
"description": "WebGAL script parser",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "vitest",
|
|
7
7
|
"coverage": "vitest run --coverage",
|
|
8
8
|
"build": "rimraf -rf ./build && rollup --config",
|
|
9
|
+
"build-ci": "rollup --config",
|
|
9
10
|
"debug": "tsx test/debug.ts"
|
|
10
11
|
},
|
|
11
12
|
"types": "./build/types/index.d.ts",
|
|
12
13
|
"module": "./build/es/index.js",
|
|
13
|
-
"main": "./build/cjs/index.
|
|
14
|
+
"main": "./build/cjs/index.cjs",
|
|
14
15
|
"author": "Mahiru <Mahiru_@outlook.com>",
|
|
15
16
|
"license": "MPL-2.0",
|
|
16
17
|
"dependencies": {
|
|
@@ -27,7 +27,7 @@ export function argsParser(argsRaw: string, assetSetter: (fileName: string, asse
|
|
|
27
27
|
argValue = undefined;
|
|
28
28
|
}
|
|
29
29
|
// 判断是不是语音参数
|
|
30
|
-
if (argName.match(/.ogg|.mp3|.wav/)) {
|
|
30
|
+
if (argName.toLowerCase().match(/.ogg|.mp3|.wav/)) {
|
|
31
31
|
returnArrayList.push({
|
|
32
32
|
key: "vocal",
|
|
33
33
|
value: assetSetter(e, fileType.vocal)
|