Skip to content

Commit 9d930ae

Browse files
committed
fix deepscan issues #842
1 parent 441e7a2 commit 9d930ae

5 files changed

+20
-30
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
[![npm](https://img.shields.io/badge/npm-DEV-blue.svg)](https://www.npmjs.com/package/jquery.terminal)
99
![bower](https://img.shields.io/badge/bower-DEV-yellow.svg)
1010
[![Build and test](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml/badge.svg?branch=devel&event=push)](https://github.com/jcubic/jquery.terminal/actions/workflows/build.yaml)
11-
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&e31addf398172b261ad412bde3188469)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
11+
[![Coverage Status](https://coveralls.io/repos/github/jcubic/jquery.terminal/badge.svg?branch=devel&ebc29d989f87a0ee59f902130a83c6a9)](https://coveralls.io/github/jcubic/jquery.terminal?branch=devel)
1212
![NPM Downloads](https://img.shields.io/npm/dm/jquery.terminal.svg?style=flat)
1313
[![jsDelivr Downloads](https://data.jsdelivr.com/v1/package/npm/jquery.terminal/badge?style=rounded&n=1)](https://www.jsdelivr.com/package/npm/jquery.terminal)
1414
[![Paid Support](https://img.shields.io/badge/paid-support-354465.svg)](https://support.jcubic.pl/)

js/jquery.terminal-src.js

+7-12
Original file line numberDiff line numberDiff line change
@@ -6317,10 +6317,7 @@
63176317
var ret = formatter(input[0], options);
63186318
if (typeof ret === 'string') {
63196319
test_lengths(formatter, i - 1, ret, input[0]);
6320-
if (typeof ret === 'string') {
6321-
return [ret, options.position];
6322-
}
6323-
return input;
6320+
return [ret, options.position];
63246321
} else if (is_array(ret) && ret.length === 2) {
63256322
return ret;
63266323
} else {
@@ -7415,14 +7412,12 @@
74157412
'></div></div><div class="terminal-pixel"></div></div>')
74167413
.appendTo('body');
74177414
temp.addClass(term.attr('class')).attr('id', term.attr('id'));
7418-
if (term) {
7419-
var style = term.attr('style');
7420-
if (style) {
7421-
style = style.split(/\s*;\s*/).filter(function(s) {
7422-
return !s.match(/display\s*:\s*none/i);
7423-
}).join(';');
7424-
temp.attr('style', style);
7425-
}
7415+
var style = term.attr('style');
7416+
if (style) {
7417+
style = style.split(/\s*;\s*/).filter(function(s) {
7418+
return !s.match(/display\s*:\s*none/i);
7419+
}).join(';');
7420+
temp.attr('style', style);
74267421
}
74277422
var node = temp.find('.terminal-line');
74287423
result = {

js/jquery.terminal.js

+9-14
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@
4141
*
4242
* broken image by Sophia Bai from the Noun Project (CC-BY)
4343
*
44-
* Date: Fri, 13 Dec 2024 15:04:35 +0000
44+
* Date: Sun, 05 Jan 2025 16:45:09 +0000
4545
*/
4646
/* global define, Map, BigInt */
4747
/* eslint-disable */
@@ -5407,7 +5407,7 @@
54075407
// -------------------------------------------------------------------------
54085408
$.terminal = {
54095409
version: 'DEV',
5410-
date: 'Fri, 13 Dec 2024 15:04:35 +0000',
5410+
date: 'Sun, 05 Jan 2025 16:45:09 +0000',
54115411
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
54125412
color_names: [
54135413
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
@@ -6317,10 +6317,7 @@
63176317
var ret = formatter(input[0], options);
63186318
if (typeof ret === 'string') {
63196319
test_lengths(formatter, i - 1, ret, input[0]);
6320-
if (typeof ret === 'string') {
6321-
return [ret, options.position];
6322-
}
6323-
return input;
6320+
return [ret, options.position];
63246321
} else if (is_array(ret) && ret.length === 2) {
63256322
return ret;
63266323
} else {
@@ -7415,14 +7412,12 @@
74157412
'></div></div><div class="terminal-pixel"></div></div>')
74167413
.appendTo('body');
74177414
temp.addClass(term.attr('class')).attr('id', term.attr('id'));
7418-
if (term) {
7419-
var style = term.attr('style');
7420-
if (style) {
7421-
style = style.split(/\s*;\s*/).filter(function(s) {
7422-
return !s.match(/display\s*:\s*none/i);
7423-
}).join(';');
7424-
temp.attr('style', style);
7425-
}
7415+
var style = term.attr('style');
7416+
if (style) {
7417+
style = style.split(/\s*;\s*/).filter(function(s) {
7418+
return !s.match(/display\s*:\s*none/i);
7419+
}).join(';');
7420+
temp.attr('style', style);
74267421
}
74277422
var node = temp.find('.terminal-line');
74287423
result = {

js/jquery.terminal.min.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.terminal.min.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)