github
493 of 773 branches covered (63.78%)
Branch coverage included in aggregate %.
45 of 58 new or added lines in 5 files covered. (77.59%)
5287 of 6089 relevant lines covered (86.83%)
1100.06 hits per line
|
import { |
|
|
BASE_10_RADIX, |
2✔ |
|
} from '../../constants.js'; |
2✔ |
|
|
2✔ |
|
export default (value: string,) => { |
2✔ |
NEW
|
if (value.match(/^\d+$/u,)) { |
× |
NEW
|
return Number.parseInt(value, BASE_10_RADIX,);
|
× |
NEW
|
} |
× |
NEW
|
return value;
|
× |
NEW
|
}; |
× |