24 lines
689 B
TypeScript
24 lines
689 B
TypeScript
// Module ID: 7064
|
|
// Function ID: 7065
|
|
// Name: regExp
|
|
// Dependencies: [2]
|
|
// Exports: default
|
|
|
|
// Module 7064 (regExp)
|
|
const regExp = new RegExp("^" + "@silent" + "(\\s|$)");
|
|
const result = require("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_RE = regExp;
|