Skip to content

Commit

Permalink
Merge pull request from GHSA-4wv4-mgfq-598v
Browse files Browse the repository at this point in the history
Replace eval with JSON.parse
  • Loading branch information
AnneTheDev committed Feb 23, 2021
2 parents 23abc78 + 2912661 commit 00639d3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ function output(laureate) {
class Parser {
// Parse JSON data
constructor(data) {
this.laureates = eval(`(${data})`).laureates;
this.laureates = JSON.parse(data}).laureates;
}

inYear(year) {
Expand Down

0 comments on commit 00639d3

Please sign in to comment.