Open temaivanoff opened 6 years ago
Hi, in some files can be sommas in the value of the view box <svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="24" height="24" viewBox="0, 0, 24, 24"> and the file just does not load.
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="24" height="24" viewBox="0, 0, 24, 24">
solution
if (item.nodeName === 'viewBox') { return { ...item, nodeValue: item.nodeValue.replace(/\,/g, '') }; }
Hi, in some files can be sommas in the value of the view box
<svg version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0" y="0" width="24" height="24" viewBox="0, 0, 24, 24">
and the file just does not load.solution