используем .endsWith вместо lastIndex
используем .endsWith вместо lastIndex

fat0troll/lorsource,fat0troll/lorsource,kloun/lorsource,ymn/lorsource,bodqhrohro/lorsource,hizel/lorsource,ymn/lorsource,bodqhrohro/lorsource,hizel/lorsource,bodqhrohro/lorsource,hizel/lorsource,maxcom/lorsource,kloun/lorsource,fat0troll/lorsource,maxcom/lorsource,maxcom/lorsource,hizel/lorsource,maxcom/lorsource,ymn/lorsource,ymn/lorsource,kloun/lorsource,fat0troll/lorsource,kloun/lorsource