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

Prepend 0 #89

Closed
PaulWoitaschek opened this issue Sep 14, 2017 · 2 comments
Closed

Prepend 0 #89

PaulWoitaschek opened this issue Sep 14, 2017 · 2 comments
Assignees

Comments

@PaulWoitaschek
Copy link

For the generated files, lint shows me a warning that numbers that start with a ., i.e. (.5) can crash on some devices. Instead it suggests to prepend a 0.
I think this is something this library could perfectly do.

zero

@SjoerdvGestel
Copy link

SjoerdvGestel commented Jan 4, 2018

would love to see this fixed!

I've made a quick regexp for find and replace in Android studio to fix the issue manually:

  • search: ([^\d])\.
  • replace: $10.

note: its not perfect, it will replace in xmlns:android="http://schemas.android.com/apk/res/android" but just be aware of that and restore it after replacing all
**
image
**

@yuraj11 yuraj11 self-assigned this Feb 23, 2018
@yuraj11
Copy link
Collaborator

yuraj11 commented Feb 23, 2018

Thanks, fixed.

@yuraj11 yuraj11 closed this as completed Feb 23, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants