Help output (Roman Numeral Converter)

I’m doing the Roman Numeral Converter, the certification, I have a problem with the value of the property number “30”: “XXX”, the output is: *****

Am i missing something? I tried everything, but without luck, it’s the only value that makes this return. My code pass the exercise, but I really want to know what is the problem.

Thank you.

Can you please provide your code? We can’t see what is wrong without seeing your code. Thanks.

So sorry, this is my code:

function convertToRoman(num) {
  const romanNumbs = {
   '1': 'I',
   '2': 'II',
   '3': 'III',
   '4': 'IV',
   '5': 'V',
   '6': 'VI',
   '7': 'VII',
   '8': 'VIII',
   '9': 'IX',
   '10': 'X',
   '20': 'XX',
   '30': 'XXX',
   '40': 'XL',
   '50': 'L',
   '60': 'LX',
   '70': 'LXX',
   '80': 'LXXX',
   '90': 'XC',
   '100': 'C',
   '200': 'CC',
   '300': 'CCC',
   '400': 'CD',
   '500': 'D',
   '600': 'DC',
   '700': 'DCC',
   '800': 'DCCC',
   '900': 'CM',
   '1000': 'M',
   '2000': 'MM',
   '3000': 'MMM'
  };
 
  let numString = String(num);
  let lenNum = numString.length;
  

  if(/^([1-9]0{1,})$/g.test(num)){
    return romanNumbs[num];
  }  
 
  return numString.split('').map((i, index) => {
    if(index != lenNum){
        i = i.padEnd((lenNum - index), '0');
        return romanNumbs[i];
      }
      return romanNumbs[i]
  }).join('');
 
}
 

I tried to run it through another compiler and works just fine! it seems that it’s a bug in OneCompiler(i use this to try my code always) Thanks, and sorry for the trouble!