summaryrefslogtreecommitdiff
path: root/client/table
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-06-28 00:44:59 -0400
committerJules Laplace <julescarbon@gmail.com>2019-06-28 00:44:59 -0400
commit642b6c412e920b0a41dafd78982ed363a747f99b (patch)
tree72e260b334eb81b2ee25cf74ff3a7498839e886c /client/table
parent8123405df3fa633127dd48d92e48d56395c635a1 (diff)
css fixes etc
Diffstat (limited to 'client/table')
-rw-r--r--client/table/citations.table.js16
1 files changed, 8 insertions, 8 deletions
diff --git a/client/table/citations.table.js b/client/table/citations.table.js
index 8fe46b69..ef5ab0b5 100644
--- a/client/table/citations.table.js
+++ b/client/table/citations.table.js
@@ -64,12 +64,12 @@ class CitationsTable extends Component {
if (!q.length) {
this.setState({ q, filteredCitations: formattedCitations })
} else {
- let q_re = new RegExp('(' + q.replace(/\s+/g, ' ').trim().replace(' ', '|') + ')', 'gi')
+ let qRe = new RegExp('(' + q.replace(/\s+/g, ' ').trim().replace(' ', '|') + ')', 'gi')
let filteredCitations = formattedCitations.filter(citation => (
- citation.title.match(q_re) ||
- citation.institution.match(q_re) ||
- citation.country.match(q_re)
- ))
+ citation.title.match(qRe) ||
+ citation.institution.match(qRe) ||
+ citation.country.match(qRe)
+ ))
this.setState({ q, filteredCitations })
}
}
@@ -85,7 +85,7 @@ class CitationsTable extends Component {
case 'number':
return String(data)
default:
- return '\"' + String(data) + '\"'
+ return '"' + String(data) + '"'
}
})
return row.join(",")
@@ -96,8 +96,8 @@ class CitationsTable extends Component {
titles.join(','),
...rows,
].join('\n')
- ], {type: "text/csv;charset=utf-8"});
- saveAs(blob, fn);
+ ], { type: "text/csv;charset=utf-8" })
+ saveAs(blob, fn)
}
render() {