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

如果className里面包含了px这两个字符 #1

Closed
lbqdly opened this issue Aug 29, 2017 · 3 comments
Closed

如果className里面包含了px这两个字符 #1

lbqdly opened this issue Aug 29, 2017 · 3 comments

Comments

@lbqdly
Copy link

lbqdly commented Aug 29, 2017

感谢你做了这样一个工具,但我在使用的时候发现,如果className里面包含了px这两个字符,也会被转成rpx。这个能避免吗?

@cytle
Copy link
Owner

cytle commented Aug 29, 2017

可以的,你的具体的类名是什么?

@cytle
Copy link
Owner

cytle commented Aug 29, 2017

现在的正则大概是这样/([\d\.]+)px/g,可能匹配了类似.pxabc这样的类名。

@cytle cytle closed this as completed Aug 29, 2017
@cytle
Copy link
Owner

cytle commented Aug 29, 2017

已经修复, 1cb8f5b

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

2 participants