supports-hyperlinks 4.2.0 → 4.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +9 -1
- package/package.json +1 -1
package/index.js
CHANGED
@@ -91,7 +91,15 @@ export function createSupportsHyperlinks(stream) {
|
|
91
91
|
}
|
92
92
|
|
93
93
|
case 'WezTerm': {
|
94
|
-
|
94
|
+
// WezTerm packaged by Nix uses their own version scheme.
|
95
|
+
if (/^0-unstable-\d{4}-\d{2}-\d{2}$/.test(TERM_PROGRAM_VERSION)) {
|
96
|
+
const date = TERM_PROGRAM_VERSION.slice('0-unstable-'.length);
|
97
|
+
return date >= '2020-06-20';
|
98
|
+
}
|
99
|
+
|
100
|
+
// This number is a date and reads better grouped as such.
|
101
|
+
// eslint-disable-next-line unicorn/numeric-separators-style
|
102
|
+
return version.major >= 2020_06_20;
|
95
103
|
}
|
96
104
|
|
97
105
|
case 'vscode': {
|