Skip to content
This repository has been archived by the owner on Apr 15, 2019. It is now read-only.

Commit

Permalink
Merge pull request #364 from Rostlab/fixspecialcharsentiment
Browse files Browse the repository at this point in the history
fix issue with specialchars in requesting sentiment csvs on detail page
  • Loading branch information
mammuth committed Apr 10, 2016
2 parents fcb715c + 8b871a9 commit b6e25c7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/public/Characters/Characters.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default class Character extends Component {

$('head').append('<link rel="stylesheet" type="text/css" href="/d4/chart.css">');
if (this.state.character.name != undefined){
const name = this.state.character.name.replace(/ /g,'_');
const name = this.state.character.name.replace(/ |'/g,'_');
$.getScript("/d4/chart.js",function(){
var chart = new characterChart(d3.select("#chart"), "/d4/csv/" + name + ".csv"); /*eslint no-undef:0*/
d3.select(window).on('resize', chart.resize);/*eslint no-undef:0*/
Expand Down

0 comments on commit b6e25c7

Please sign in to comment.