decord/alpha/source/modules/application_commands/DraftCommand.tsx

24 lines
692 B
TypeScript
Raw Permalink Normal View History

2026-10-12 06:59:38 +00:00
// Module ID: 7245
// Function ID: 7246
// Name: DraftCommand
2026-08-31 15:47:37 +00:00
// Dependencies: [2]
// Exports: isDraftCommandValidForText
2026-10-12 06:59:38 +00:00
// Module 7245 (DraftCommand)
import size from "module_2" /* 2 */;
2026-08-31 15:47:37 +00:00
const result = size.fileFinishedImporting("modules/application_commands/DraftCommand.tsx");
2026-08-31 15:47:37 +00:00
export const isDraftCommandValidForText = function isDraftCommandValidForText(command1, substr) {
let tmp = null != command1;
2026-08-31 15:47:37 +00:00
if (tmp) {
let startsWithResult = substr === command1.commandText;
2026-08-31 15:47:37 +00:00
if (!startsWithResult) {
const _HermesInternal = HermesInternal;
startsWithResult = substr.startsWith("" + command1.commandText + " ");
2026-08-31 15:47:37 +00:00
}
tmp = startsWithResult;
}
return tmp;
};