File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
copypasta/template/leetcode Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -433,14 +433,14 @@ func (p *problem) parseHTML(session *grequests.Session) (err error) {
433
433
raw := o .FirstChild .Data
434
434
sp := strings .Split (raw , "`" )
435
435
for i , s := range sp {
436
- if strings .Contains (s , ">输入" ) {
436
+ if strings .Contains (s , ">输入" ) || strings . Contains ( s , "> 输入" ) {
437
437
text := sp [i + 1 ]
438
438
if ! p .isFuncProblem {
439
439
// https://leetcode-cn.com/contest/season/2020-fall/problems/IQvJ9i/
440
440
text += "\n " + sp [i + 3 ] // 跳过 sp[i+2]
441
441
}
442
442
p .sampleIns = append (p .sampleIns , p .parseSampleText (text , true ))
443
- } else if strings .Contains (s , ">输出" ) {
443
+ } else if strings .Contains (s , ">输出" ) || strings . Contains ( s , "> 输出" ) {
444
444
p .sampleOuts = append (p .sampleOuts , p .parseSampleText (sp [i + 1 ], true ))
445
445
}
446
446
}
You can’t perform that action at this time.
0 commit comments