Skip to content

Commit

Permalink
修改综合影响因子匹配错误
Browse files Browse the repository at this point in the history
  • Loading branch information
redleafnew committed Apr 23, 2023
1 parent 9438bef commit c0b2c8b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/modules/examples.ts
Original file line number Diff line number Diff line change
Expand Up @@ -399,7 +399,7 @@ export class KeyExampleFactory {
}
);
var AllJour = resp.responseText;
var reg = pubT + '\n(.*\n){10,40} .*复合影响因子:(.*)\n(.*\n){0,6} .*综合影响因子:(.*)'; //复合影响因子和综合影响因子正则,里面含有空格,\s不行
var reg = ' ' + pubT + '\n(.*\n){10,40} .*复合影响因子:(.*)\n(.*\n){0,6} .*综合影响因子:(.*)'; //复合影响因子和综合影响因子正则,里面含有空格,\s不行
var patt = new RegExp(reg, 'i'); //
var jour = AllJour.match(patt) // [2]为复合影响因子,[4]为综合IF
var compoundIF = jour[2];
Expand Down

0 comments on commit c0b2c8b

Please # to comment.