UNPKG

@remotion/studio

Version:

APIs for interacting with the Remotion Studio

12 lines (11 loc) 365 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.getStringBeforeSuffix = void 0; const getStringBeforeSuffix = (fileName) => { const dotPos = fileName.lastIndexOf('.'); if (dotPos === -1) { return fileName; } return fileName.substring(0, dotPos); }; exports.getStringBeforeSuffix = getStringBeforeSuffix;