export default function parseTimeString(str) {
    const regexRes = new RegExp('[0-9]{0,2}:[0-9]{0,2}').exec(str);
    let hours = null;
    let minutes = null;
    if (regexRes) {
        const parts = regexRes[0].split(':');

        hours = parseInt(parts[0], 10) || 0;
        minutes = parseInt(parts[1], 10) || 0;
    }

    return {
        hours,
        minutes,
    };
}

@@ -1,8 +1,64 @@
+const TIME_STRING_REGEX = /(%5B0-9%5D%7B0,2%7D):(%5B0-9%5D%7B0,2%7D)/;%0A%0A
 export d
@@ -121,43 +121,25 @@
 s = 
-new RegExp('%5B0-9%5D%7B0,2%7D:%5B0-9%5D%7B0,2%7D')
+TIME_STRING_REGEX
 .exe
@@ -188,24 +188,25 @@
 tes = null;%0A
+%0A
     if (rege
@@ -217,55 +217,8 @@
 ) %7B%0A
-        const parts = regexRes%5B0%5D.split(':');%0A%0A
     
@@ -242,15 +242,18 @@
 Int(
-parts%5B0
+regexRes%5B1
 %5D, 1
@@ -292,15 +292,18 @@
 Int(
-parts%5B1
+regexRes%5B2
 %5D, 1

Use regex for parsing TimeString