Skip to content

Commit

Permalink
修复Givee无法识别Steam加组任务的BUG
Browse files Browse the repository at this point in the history
  • Loading branch information
HCLonely committed Jul 15, 2022
1 parent d61da84 commit f14a182
Show file tree
Hide file tree
Showing 18 changed files with 37 additions and 35 deletions.
8 changes: 3 additions & 5 deletions .github/workflows/Release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,9 @@ jobs:
uses: softprops/action-gh-release@v1
with:
prerelease: false
tag_name: v4.2.16
name: 4.2.16
body: |-
- Givee任务识别优化
- Givee可识别任务增加(关注Steam游戏)
tag_name: v4.2.17
name: 4.2.17
body: '- 修复Givee无法识别Steam加组任务的BUG'
files: |-
dist/auto-task-v4-for-giveawaysu.user.js
dist/auto-task-v4.compatibility.user.js
Expand Down
2 changes: 1 addition & 1 deletion dist/auto-task-v4-for-giveawaysu.all.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/auto-task-v4-for-giveawaysu.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/auto-task-v4.all.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.16
// @version 4.2.17
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -8463,7 +8463,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (!taskLink) {
return resolve(false);
}
if (taskType === 'steam.group.join' && /'^https?:\/\/steamcommunity\.com\/groups'/.test(taskLink)) {
if (taskType === 'steam.group.join' && /^https?:\/\/steamcommunity\.com\/groups/.test(taskLink)) {
this.undoneTasks.steam.groupLinks.push(taskLink);
} else if (/like.*announcement/gi.test(taskName)) {
this.undoneTasks.steam.announcementLinks.push(taskLink);
Expand Down
4 changes: 2 additions & 2 deletions dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/auto-task-v4.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.16
// @version 4.2.17
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -8444,7 +8444,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (!taskLink) {
return resolve(false);
}
if (taskType === 'steam.group.join' && /'^https?:\/\/steamcommunity\.com\/groups'/.test(taskLink)) {
if (taskType === 'steam.group.join' && /^https?:\/\/steamcommunity\.com\/groups/.test(taskLink)) {
this.undoneTasks.steam.groupLinks.push(taskLink);
} else if (/like.*announcement/gi.test(taskName)) {
this.undoneTasks.steam.announcementLinks.push(taskLink);
Expand Down
4 changes: 2 additions & 2 deletions doc/docs/.vuepress/public/report.html

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions doc/docs/logs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,12 @@ lang: zh-CN

## V4.2

### V4.2.17

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.17)

- 修复Givee无法识别Steam加组任务的BUG

### V4.2.16

[Release](https://github.com/HCLonely/auto-task-v4/releases/tag/v4.2.16)
Expand Down
5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.2.16",
"version": "4.2.17",
"change": [
"Givee任务识别优化",
"Givee可识别任务增加(关注Steam游戏)"
"修复Givee无法识别Steam加组任务的BUG"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
2 changes: 1 addition & 1 deletion page/dist/auto-task-v4-for-giveawaysu.all.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion page/dist/auto-task-v4-for-giveawaysu.user.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.all.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.16
// @version 4.2.17
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -8463,7 +8463,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (!taskLink) {
return resolve(false);
}
if (taskType === 'steam.group.join' && /'^https?:\/\/steamcommunity\.com\/groups'/.test(taskLink)) {
if (taskType === 'steam.group.join' && /^https?:\/\/steamcommunity\.com\/groups/.test(taskLink)) {
this.undoneTasks.steam.groupLinks.push(taskLink);
} else if (/like.*announcement/gi.test(taskName)) {
this.undoneTasks.steam.announcementLinks.push(taskLink);
Expand Down
4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.compatibility.all.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.compatibility.user.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions page/dist/auto-task-v4.user.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// ==UserScript==
// @name auto-task-v4
// @namespace auto-task-v4
// @version 4.2.16
// @version 4.2.17
// @description 自动完成 Freeanywhere,Giveawaysu,GiveeClub,Givekey,Gleam,Indiedb,keyhub,OpiumPulses,Opquests,SweepWidget 等网站的任务。
// @description:en Automatically complete the tasks of FreeAnyWhere, GiveawaySu, GiveeClub, Givekey, Gleam, Indiedb, keyhub, OpiumPulses, Opquests, SweepWidget websites.
// @author HCLonely
Expand Down Expand Up @@ -8444,7 +8444,7 @@ console.log('%c%s', 'color:blue', 'Auto-Task[Load]: 脚本开始加载');
if (!taskLink) {
return resolve(false);
}
if (taskType === 'steam.group.join' && /'^https?:\/\/steamcommunity\.com\/groups'/.test(taskLink)) {
if (taskType === 'steam.group.join' && /^https?:\/\/steamcommunity\.com\/groups/.test(taskLink)) {
this.undoneTasks.steam.groupLinks.push(taskLink);
} else if (/like.*announcement/gi.test(taskName)) {
this.undoneTasks.steam.announcementLinks.push(taskLink);
Expand Down
5 changes: 2 additions & 3 deletions page/package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
{
"name": "auto-task-v4",
"version": "4.2.16",
"version": "4.2.17",
"change": [
"Givee任务识别优化",
"Givee可识别任务增加(关注Steam游戏)"
"修复Givee无法识别Steam加组任务的BUG"
],
"description": "赠Key站自动任务脚本",
"main": "package.json",
Expand Down
4 changes: 2 additions & 2 deletions src/scripts/website/GiveeClub.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
/*
* @Author : HCLonely
* @Date : 2021-11-14 11:46:52
* @LastEditTime : 2022-07-03 09:58:51
* @LastEditTime : 2022-07-15 10:34:43
* @LastEditors : HCLonely
* @FilePath : /auto-task-new/src/scripts/website/GiveeClub.ts
* @Description : https://givee.club/
Expand Down Expand Up @@ -83,7 +83,7 @@ class GiveeClub extends GiveawaySu {
if (!taskLink) {
return resolve(false);
}
if (taskType === 'steam.group.join' && /'^https?:\/\/steamcommunity\.com\/groups'/.test(taskLink)) { // ok
if (taskType === 'steam.group.join' && /^https?:\/\/steamcommunity\.com\/groups/.test(taskLink)) { // ok
this.undoneTasks.steam.groupLinks.push(taskLink);
} else if (/like.*announcement/gi.test(taskName)) { // 未识别
this.undoneTasks.steam.announcementLinks.push(taskLink);
Expand Down

1 comment on commit f14a182

@vercel
Copy link

@vercel vercel bot commented on f14a182 Jul 15, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.