Last analyzed 027ab13 5 months ago
Default analysis branch is
Currently analyzing run
Bad usage of RegExp#exec and String#match JS-D007
Performance
5 months ago5 months old
Prefer RegExp#test() over String#match()
 1const convertDuration = (str) => {
 2  const regex = /\d{1,2}/g;
 3
 4  return str.match(regex).join(':'); 5};
 6
 7const convertPublishedTime = str => (