iot-backend/software/flow/node_modules/npm/lib/utils/ansi-trim.js

4 lines
173 B
JavaScript
Raw Normal View History

2023-02-23 15:38:30 +01:00
const r = new RegExp('\x1b(?:\\[(?:\\d+[ABCDEFGJKSTm]|\\d+;\\d+[Hfm]|' +
'\\d+;\\d+;\\d+m|6n|s|u|\\?25[lh])|\\w)', 'g')
module.exports = str => str.replace(r, '')