1 | ;
|
2 |
|
3 | Object.defineProperty(exports, "__esModule", {
|
4 | value: true
|
5 | });
|
6 | exports.default = getMinimumHeight;
|
7 | function getMinimumHeight(minimumHeightString) {
|
8 | if (!/^[0-9]*$/.test(minimumHeightString)) {
|
9 | throw new Error("Minimum Height must be an integer. Received: " + minimumHeightString);
|
10 | }
|
11 |
|
12 | return parseInt(minimumHeightString, 10);
|
13 | } |
\ | No newline at end of file |