Harden Windows DLP enforcement and Electron runtime packaging
This commit is contained in:
1 parent
e7d778aeac
commit
8a253eda89
120 files changed
+3569
-135
No files matched your search
@@ -29,6 +29,7 @@ function download(url,{address,family,signal}){
|
||||
});req.on('timeout',()=>req.destroy(Error('News request timeout')));req.on('error',reject);
|
||||
});
|
||||
}
|
||||
// eslint-disable-next-line no-control-regex -- Explicitly reject control characters in security-sensitive input.
|
||||
const plain=value=>value.replace(/<[^>]*>/g,' ').replace(/[\u0000-\u001f\u007f]/g,' ').replace(/\s+/g,' ').trim();
|
||||
export function parseCompanyNews(bytes){
|
||||
if(bytes.length>MAX_BYTES)throw Error('News feed too large');
|
||||
|
||||
Reference in new issue
Block a user