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

全小写多词标识符的问题 #32

Open
nobodxbodon opened this issue Apr 1, 2020 · 1 comment
Open

全小写多词标识符的问题 #32

nobodxbodon opened this issue Apr 1, 2020 · 1 comment

Comments

@nobodxbodon
Copy link
Member

包括释义中出现空格,也是问题。来自用户反馈:
翻译插件_反馈 python

@nobodxbodon
Copy link
Member Author

更多例子:
WechatIMG18
WechatIMG20

被告知:

新内容 = re.sub(r'(\W)('+ 原命名+r')(\W)',r'\1'+翻译+r'\3', 新内容)
#新内容 = re.sub(原命名,翻译, 新内容)
把下面这种正则改为上面的就可以了,不过是Python 的句式

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant