Skip to content
This repository has been archived by the owner on Mar 29, 2021. It is now read-only.

Commit

Permalink
fix PMC API issue. Closes #373
Browse files Browse the repository at this point in the history
  • Loading branch information
dsifford committed Oct 25, 2017
1 parent 1ae2726 commit d135cf0
Show file tree
Hide file tree
Showing 3 changed files with 55 additions and 51 deletions.
96 changes: 50 additions & 46 deletions package-lock.json

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

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@
}
],
"devDependencies": {
"@types/enzyme": "^3.1.0",
"@types/gulp": "^4.0.4",
"@types/enzyme": "^3.1.1",
"@types/gulp": "^4.0.5",
"@types/gulp-autoprefixer": "0.0.30",
"@types/gulp-replace": "0.0.30",
"@types/gulp-sass": "0.0.30",
"@types/gulp-sort": "0.0.31",
"@types/gulp-sourcemaps": "0.0.31",
"@types/he": "^0.5.29",
"@types/jest": "^21.1.4",
"@types/jest": "^21.1.5",
"@types/jquery": "^3.2.15",
"@types/node": "^8.0.46",
"@types/node": "^8.0.47",
"@types/react": "^16.0.18",
"@types/react-dom": "^16.0.2",
"@types/react-motion": "^0.0.23",
Expand Down
2 changes: 1 addition & 1 deletion src/js/reference-list/api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export async function getRemoteData(identifierList: string): Promise<[CSL.Data[]
pmidList = [...pmidList, id];
break;
case /^PMC\d+$/.test(id):
pmcidList = [...pmcidList, id];
pmcidList = [...pmcidList, id.slice(3)];
break;
default:
errList = [...errList, id];
Expand Down

0 comments on commit d135cf0

Please # to comment.