Compare commits
10
Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7d19769bd0 | ||
|
|
a5e43ad8cc | ||
|
|
ac69ef5e01 | ||
|
|
b28be877bd | ||
|
|
217ed05606 | ||
|
|
02aa803889 | ||
|
|
9489bd8c5c | ||
|
|
324dc8d4dc | ||
|
|
70ecec3c92 | ||
|
|
e0997b51e1 |
+1
-1
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "xterm",
|
||||
"description": "Full xterm terminal, in your browser",
|
||||
"version": "4.0.0",
|
||||
"version": "4.0.2",
|
||||
"main": "lib/xterm.js",
|
||||
"style": "css/xterm.css",
|
||||
"types": "typings/xterm.d.ts",
|
||||
|
||||
+2
-2
@@ -604,8 +604,8 @@ export class Terminal extends Disposable implements ITerminal, IDisposable, IInp
|
||||
// Performance: Add viewport and helper elements from the fragment
|
||||
this.element.appendChild(fragment);
|
||||
|
||||
this._theme = this.options.theme;
|
||||
this.options.theme = null;
|
||||
this._theme = this.options.theme || this._theme;
|
||||
this.options.theme = undefined;
|
||||
this._colorManager = new ColorManager(document, this.options.allowTransparency);
|
||||
this._colorManager.setTheme(this._theme);
|
||||
|
||||
|
||||
@@ -211,7 +211,7 @@ export class Linkifier implements ILinkifier {
|
||||
*/
|
||||
private _doLinkifyRow(rowIndex: number, text: string, matcher: ILinkMatcher): void {
|
||||
// clone regex to do a global search on text
|
||||
const rex = new RegExp(matcher.regex.source, matcher.regex.flags + 'g');
|
||||
const rex = new RegExp(matcher.regex.source, (matcher.regex.flags || '') + 'g');
|
||||
let match;
|
||||
let stringIndex = -1;
|
||||
while ((match = rex.exec(text)) !== null) {
|
||||
|
||||
@@ -35,7 +35,6 @@ module.exports = {
|
||||
output: {
|
||||
filename: 'xterm.js',
|
||||
path: path.resolve('./lib'),
|
||||
library: 'Terminal',
|
||||
libraryTarget: 'umd'
|
||||
},
|
||||
mode: 'production'
|
||||
|
||||
Reference in New Issue
Block a user