File tree Expand file tree Collapse file tree 3 files changed +15
-5
lines changed
Expand file tree Collapse file tree 3 files changed +15
-5
lines changed Original file line number Diff line number Diff line change @@ -10,11 +10,11 @@ jobs:
1010 lint :
1111 runs-on : ubuntu-latest
1212 steps :
13- - uses : actions/checkout@v2
13+ - uses : actions/checkout@v4
1414 with :
1515 fetch-depth : 2
1616 submodules : recursive
17- - uses : actions/setup-node@v1
17+ - uses : actions/setup-node@v3
1818 with :
1919 node-version : 20.x
2020 - run : npm install
@@ -28,12 +28,12 @@ jobs:
2828 node : ['18', '20', '22']
2929 name : Testing on node ${{ matrix.node }}
3030 steps :
31- - uses : actions/checkout@v2
31+ - uses : actions/checkout@v4
3232 with :
3333 fetch-depth : 2
3434 submodules : recursive
3535 - name : Setup Node.js environment
36- uses : actions/setup-node@v2
36+ uses : actions/setup-node@v3
3737 with :
3838 node-version : ${{ matrix.node }}
3939 cache : ' npm'
Original file line number Diff line number Diff line change @@ -115,6 +115,16 @@ describe('external DOI links', () => {
115115 'https://www.biorxiv.org/content/10.1101/2020.11.02.364968v2' ,
116116 '10.1101/2020.11.02.364968' ,
117117 ] ,
118+ [
119+ 'biorxiv' ,
120+ 'https://www.biorxiv.org/content/10.1101/2020.11.02.364968v1.full' ,
121+ '10.1101/2020.11.02.364968' ,
122+ ] ,
123+ [
124+ 'biorxiv' ,
125+ 'https://www.biorxiv.org/content/10.1101/2020.11.02.364968v23.article-metrics' ,
126+ '10.1101/2020.11.02.364968' ,
127+ ] ,
118128 ] ) ( 'Test %s (%s) <%s>' , ( _ , url , doiString ) => {
119129 expect ( doi . normalize ( url ) ) . toBe ( doiString ) ;
120130 expect ( doi . validate ( url ) ) . toBe ( doiString ? true : false ) ;
Original file line number Diff line number Diff line change @@ -45,7 +45,7 @@ const biorxiv: Resolver = {
4545 parse ( url ) {
4646 return clumpParts ( url )
4747 . find ( validatePart )
48- ?. replace ( / v ( [ \d ] * ) $ / , '' ) ;
48+ ?. replace ( / v \d + ( \. [ a - z A - Z - ] + ) ? $ / , '' ) ;
4949 } ,
5050} ;
5151
You can’t perform that action at this time.
0 commit comments