Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

源文件名含有数字时,被替换成下划线 #24

Open
MankinChung opened this issue May 22, 2017 · 1 comment
Open

源文件名含有数字时,被替换成下划线 #24

MankinChung opened this issue May 22, 2017 · 1 comment
Labels

Comments

@MankinChung
Copy link

MankinChung commented May 22, 2017

因特殊原因需要保留原文件名,但源文件名含有数字,会被替换成下划线

@MankinChung MankinChung changed the title SVG2VectorDrawable threw an uncaught ArrayIndexOutOfBoundsException. 源文件名含有数字时,被替换成下划线 May 22, 2017
@misakuo
Copy link
Owner

misakuo commented May 23, 2017

生成文件名的逻辑在https://github.com/misakuo/svgtoandroid/blob/master/src/com/moxun/s2v/utils/CommonUtil.java#L65 ,做过滤的原因是因为某些字符在xml命名里是非法的,你可以看一下针对你的需求提个PR,或者在生成的时候直接修改XML_NAME对应的值,这会更灵活一些

Elaine666 added a commit to Elaine666/svgtoandroid that referenced this issue May 15, 2019
解决SVG文件名含有数字时,会被替换为下划线的问题,保持原来的数字
misakuo added a commit that referenced this issue Jul 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants