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
mgr/dashboard: Add toBytes() method to FormatterService #20978
Conversation
const m = RegExp('^(\\d+)\\s*(B|K(B|iB)?|M(B|iB)?|G(B|iB)?|T(B|iB)?|P(B|iB)?|' + | ||
'E(B|iB)?|Z(B|iB)?|Y(B|iB)?)?$', 'i').exec(value); | ||
if (m === null) { | ||
return false; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How will this be used? Would it make more sense to return null?
Could you give an example?
Signed-off-by: Volker Theile <vtheile@suse.com>
cb33c2b
to
e71a33e
Compare
@tspmelo Your comment has been implemented. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Lgtm
After this PR is merged, I'll adapt #20972 accordingly. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
jenkins retest this please |
1 similar comment
jenkins retest this please |
Signed-off-by: Volker Theile vtheile@suse.com