Buckets:
dieumercimvemba/mediastore / scripts /whatsapp-bridge /node_modules /@hapi /hoek /lib /escapeHeaderAttribute.js
| ; | |
| const Assert = require('./assert'); | |
| const internals = {}; | |
| module.exports = function (attribute) { | |
| // Allowed value characters: !#$%&'()*+,-./:;<=>?@[]^_`{|}~ and space, a-z, A-Z, 0-9, \, " | |
| Assert(/^[ \w\!#\$%&'\(\)\*\+,\-\.\/\:;<\=>\?@\[\]\^`\{\|\}~\"\\]*$/.test(attribute), 'Bad attribute value (' + attribute + ')'); | |
| return attribute.replace(/\\/g, '\\\\').replace(/\"/g, '\\"'); // Escape quotes and slash | |
| }; | |
Xet Storage Details
- Size:
- 474 Bytes
- Xet hash:
- ac03bc4663e578991d435f7cd5cf971906fd0cae55e3bb0595e8e6c3eb4ce78c
·
Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.