navinvishy commented on code in PR #27056:
URL: https://github.com/apache/flink/pull/27056#discussion_r2389435663


##########
flink-core-api/src/main/java/org/apache/flink/configuration/MemorySize.java:
##########
@@ -287,6 +287,10 @@ public static long parseBytes(String text) throws 
IllegalArgumentException {
             throw new NumberFormatException("text does not start with a 
number");
         }
 
+        if(unit.startsWith(".")) {

Review Comment:
   Yes the unit is 1 or more digits followed by unit. I have changed this to 
use a regex. Could you take another look? Thanks!



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to