decord/source/modules/suppress_notifications/parseContentForSuppressNotifications.tsx
github-actions 4f02868c60 chore: update source for alpha 346.4
Skipped 1 file(s) >100MB (GitHub limit): source/__polyfill/04xxx/module_4792.js (118.4 MB)
2026-09-11 10:30:06 +00:00

27 lines
819 B
TypeScript

// Module ID: 7757
// Function ID: 7758
// Name: parseContentForSuppressNotifications
// Dependencies: [2]
// Exports: default
// Module 7757 (parseContentForSuppressNotifications)
import size from "module_2" /* 2 */;
const regExp = new RegExp("^" + "@silent" + "(\\s|$)");
const result = size.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;