Next.js website for Rocky Mountain Vending company featuring: - Product catalog with Stripe integration - Service areas and parts pages - Admin dashboard with Clerk authentication - SEO optimized pages with JSON-LD structured data Co-authored-by: Cursor <cursoragent@cursor.com>
29 lines
No EOL
568 B
Text
29 lines
No EOL
568 B
Text
"use strict";
|
|
|
|
Object.defineProperty(exports, "__esModule", {
|
|
value: true
|
|
});
|
|
exports.default = _default;
|
|
|
|
// Trims insignificant zeros, e.g., replaces 1.2000k with 1.2k.
|
|
function _default(s) {
|
|
out: for (var n = s.length, i = 1, i0 = -1, i1; i < n; ++i) {
|
|
switch (s[i]) {
|
|
case ".":
|
|
i0 = i1 = i;
|
|
break;
|
|
|
|
case "0":
|
|
if (i0 === 0) i0 = i;
|
|
i1 = i;
|
|
break;
|
|
|
|
default:
|
|
if (!+s[i]) break out;
|
|
if (i0 > 0) i0 = 0;
|
|
break;
|
|
}
|
|
}
|
|
|
|
return i0 > 0 ? s.slice(0, i0) + s.slice(i1 + 1) : s;
|
|
} |