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

Util.splitUnit에서 지수표기법이 걸러내지 않는 버그 수정 #16

Open
daybrush opened this issue Nov 23, 2016 · 0 comments
Labels

Comments

@daybrush
Copy link
Member

daybrush commented Nov 23, 2016

ex) 1.023e-17

splitunit("1.023e-17");
//replace(/[^0-9|\.|\-]/g,'');
// value = parseFloat("1.023-17") => 1.023
return {"unit" : "1.023e-17", value : 1.023}

fixed

splitunit("1.023e-17");
//replace(/[^0-9|\.|\-|e\-|e\+]/g,'');
return {"unit" : "", value : 1.023e-17}
@daybrush daybrush changed the title split Unit 지수표기법이 걸러내지 않는 버그 수정 Util.splitUnit에서 지수표기법이 걸러내지 않는 버그 수정 Nov 23, 2016
@daybrush daybrush added the bug label Nov 23, 2016
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

1 participant