decord/source/modules/suppress_notifications/parseContentForSuppressNotifications.tsx

25 lines
689 B
TypeScript
Raw Normal View History

2026-08-05 07:35:12 +00:00
// Module ID: 7037
// Function ID: 7038
2026-07-20 16:05:17 +00:00
// Name: regExp
2026-07-23 10:11:24 +00:00
// Dependencies: [2]
2026-07-20 16:05:17 +00:00
// Exports: default
2026-08-05 07:35:12 +00:00
// Module 7037 (regExp)
2026-07-20 16:05:17 +00:00
const regExp = new RegExp("^" + "@silent" + "(\\s|$)");
2026-07-23 10:11:24 +00:00
const result = require("set").fileFinishedImporting("modules/suppress_notifications/parseContentForSuppressNotifications.tsx");
2026-07-20 16:05:17 +00:00
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_RE = regExp;