webgal-parser 4.4.5-fix1 → 4.4.5-fix2

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.
@@ -53,7 +53,7 @@ const commandParser = (commandRaw, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG) => {
53
53
  const type = getCommandType(commandRaw, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG);
54
54
  returnCommand.type = type;
55
55
  // 如果是对话,加上额外的参数
56
- if (type === commandType.say) {
56
+ if (type === commandType.say && commandRaw !== 'say') {
57
57
  returnCommand.additionalArgs.push({
58
58
  key: "speaker",
59
59
  value: commandRaw
package/build/es/index.js CHANGED
@@ -49,7 +49,7 @@ const commandParser = (commandRaw, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG) => {
49
49
  const type = getCommandType(commandRaw, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG);
50
50
  returnCommand.type = type;
51
51
  // 如果是对话,加上额外的参数
52
- if (type === commandType.say) {
52
+ if (type === commandType.say && commandRaw !== 'say') {
53
53
  returnCommand.additionalArgs.push({
54
54
  key: "speaker",
55
55
  value: commandRaw
@@ -52,7 +52,7 @@ var webgalParser = (function (exports) {
52
52
  const type = getCommandType(commandRaw, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG);
53
53
  returnCommand.type = type;
54
54
  // 如果是对话,加上额外的参数
55
- if (type === commandType.say) {
55
+ if (type === commandType.say && commandRaw !== 'say') {
56
56
  returnCommand.additionalArgs.push({
57
57
  key: "speaker",
58
58
  value: commandRaw
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "webgal-parser",
3
- "version": "4.4.5-fix1",
3
+ "version": "4.4.5-fix2",
4
4
  "description": "WebGAL script parser",
5
5
  "scripts": {
6
6
  "test": "vitest",
@@ -16,7 +16,7 @@ export const commandParser = (commandRaw: string, ADD_NEXT_ARG_LIST:any, SCRIPT_
16
16
  const type: commandType = getCommandType(commandRaw, ADD_NEXT_ARG_LIST, SCRIPT_CONFIG);
17
17
  returnCommand.type = type;
18
18
  // 如果是对话,加上额外的参数
19
- if (type === commandType.say) {
19
+ if (type === commandType.say && commandRaw!== 'say') {
20
20
  returnCommand.additionalArgs.push({
21
21
  key: "speaker",
22
22
  value: commandRaw