patrik-csak/license-plate-serial-generator

View on GitHub
tests/helpers/get-ending-digits.ts

Summary

Maintainability
A
0 mins
Test Coverage
import getFirstMatchingPattern from './get-first-matching-pattern';

export default function getEndingDigits(string: string) {
    return getFirstMatchingPattern(string, /\d+$/);
}