ansi-regex
Advanced tools
Comparing version 1.0.0 to 1.1.0
'use strict'; | ||
module.exports = function () { | ||
return /\u001b\[(?:[0-9]{1,3}(?:;[0-9]{1,3})*)?[m|K]/g; | ||
return /(?:(?:\u001b\[)|\u009b)(?:(?:[0-9]{1,3})?(?:(?:;[0-9]{0,3})*)?[A-M|f-m])|\u001b[A-M]/g; | ||
}; |
{ | ||
"name": "ansi-regex", | ||
"version": "1.0.0", | ||
"version": "1.1.0", | ||
"description": "Regular expression for matching ANSI escape codes", | ||
@@ -16,3 +16,4 @@ "license": "MIT", | ||
"scripts": { | ||
"test": "mocha" | ||
"test": "mocha test/test.js", | ||
"view-supported": "node test/viewCodes.js" | ||
}, | ||
@@ -19,0 +20,0 @@ "files": [ |
1887