diff --git a/src/client/component/contentinfo.tsx b/src/client/component/contentinfo.tsx index 3e90593..de8452a 100644 --- a/src/client/component/contentinfo.tsx +++ b/src/client/component/contentinfo.tsx @@ -97,7 +97,7 @@ export const ContentInfo = (props: { const subinfoContainer = props.short ? classes.short_subinfoContainer : classes.subinfoContainer; let allTag = document.tags; - const artists = allTag.filter(x => x.startsWith("artist:")).map(x => x.substr(7)); + const artists = allTag.filter(x => x.startsWith("artist:")).map(x => x.slice(7)); allTag = allTag.filter(x => !x.startsWith("artist:")); return ( & {tagname: string})=>{ let newlabel:string|undefined = undefined; if(typeof label === "string"){ if(label.startsWith("female:")){ - newlabel ="♀ "+label.substr(7); + newlabel ="♀ "+label.slice(7); } else if(label.startsWith("male:")){ - newlabel = "♂ "+label.substr(5); + newlabel = "♂ "+label.slice(5); } } return ;