Skip to content

Commit

Permalink
[config] sources “信电” (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
YDX-2147483647 authored Aug 14, 2023
1 parent 4cf3b68 commit 68ac5c9
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
12 changes: 12 additions & 0 deletions config/sources_by_selectors.json
Original file line number Diff line number Diff line change
Expand Up @@ -369,6 +369,18 @@
"selectors": {
"rows": ".rt01_list > ul > li"
}
},
{
"name": "信电",
"full_name": "信息与电子学院",
"url": "https://sie.bit.edu.cn/index.htm",
"guide": [
"信息与电子学院",
"通知公告"
],
"selectors": {
"rows": ".mode6_lt > ul > li"
}
}
]
}
1 change: 1 addition & 0 deletions src/util/my_date.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ describe('解析日期', () => {
})
it('省略“年”时理解为当年', () => {
assert_date(parse_date('1-1'), new Date((new Date()).getFullYear(), 0, 1))
assert_date(parse_date('08-14'), new Date((new Date()).getFullYear(), 7, 14))
})
it('忽略两边的字符', () => {
assert_date(parse_date('[2021-12-10]'), new Date(2021, 11, 10))
Expand Down

0 comments on commit 68ac5c9

Please sign in to comment.