decord/source/modules/suppress_notifications/parseContentForSuppressNotifications.tsx
github-actions cd74c1f217 chore: update source for alpha 345.5
Skipped 1 file(s) >100MB (GitHub limit): source/__vendor/09xxx/9667_m.js (378 MB)
2026-09-05 10:56:28 +00:00

27 lines
752 B
TypeScript

// Module ID: 7684
// Function ID: 7685
// Name: regExp
// Dependencies: [2]
// Exports: default
// Module 7684 (regExp)
import set from "set" /* 2 */;
const regExp = new RegExp("^" + "@silent" + "(\\s|$)");
const result = set.fileFinishedImporting("modules/suppress_notifications/parseContentForSuppressNotifications.tsx");
export default function parseContentForSuppressNotifications(str) {
if (null == str) {
const items = [false, ""];
let items2 = items;
} else if (null == str.match(regExp)) {
const items1 = [false, str];
items2 = items1;
} else {
items2 = [true, str.substring(7).trim()];
str = str.substring(7);
}
return items2;
};
export const SILENT_SENTINEL = "@silent";
export const SILENT_RE = regExp;