diff --git a/app/components/public/Characters/Characters.jsx b/app/components/public/Characters/Characters.jsx index f69ae15..c680c13 100644 --- a/app/components/public/Characters/Characters.jsx +++ b/app/components/public/Characters/Characters.jsx @@ -56,7 +56,7 @@ export default class Character extends Component { $('head').append(''); 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*/