Skip to content

Commit

Permalink
allow usage of String instance in greetings #936
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Apr 29, 2024
1 parent f2ee6bb commit aaa1295
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
@@ -1,6 +1,7 @@
## 2.41.0
### Features
* allow to use class and other attributes in style XML tags (like `<bold/>` or `<glow/>`)
* allow usage of String instance in greetings [#936](https://github.com/jcubic/jquery.terminal/issues/936)
### Bugfix
* fix alt image attribute
* fix visible formatting in prompt after animated exec [#938](https://github.com/jcubic/jquery.terminal/issues/938)
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal-2.40.6.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Mon, 29 Apr 2024 13:41:31 +0000
* Date: Mon, 29 Apr 2024 13:58:36 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5312,7 +5312,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Mon, 29 Apr 2024 13:41:31 +0000',
date: 'Mon, 29 Apr 2024 13:58:36 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -8476,7 +8476,7 @@
self.echo(self.signature, {finalize: a11y_hide, formatters: false});
} else if (settings.greetings) {
var type = typeof settings.greetings;
if (type === 'string') {
if (type === 'string' || type instanceof String) {
self.echo(settings.greetings);
} else if (type === 'function') {
self.echo(function() {
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal-2.40.6.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal-src.js
Expand Up @@ -8476,7 +8476,7 @@
self.echo(self.signature, {finalize: a11y_hide, formatters: false});
} else if (settings.greetings) {
var type = typeof settings.greetings;
if (type === 'string') {
if (type === 'string' || type instanceof String) {
self.echo(settings.greetings);
} else if (type === 'function') {
self.echo(function() {
Expand Down
6 changes: 3 additions & 3 deletions js/jquery.terminal.js
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Mon, 29 Apr 2024 13:41:31 +0000
* Date: Mon, 29 Apr 2024 13:58:36 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5312,7 +5312,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Mon, 29 Apr 2024 13:41:31 +0000',
date: 'Mon, 29 Apr 2024 13:58:36 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -8476,7 +8476,7 @@
self.echo(self.signature, {finalize: a11y_hide, formatters: false});
} else if (settings.greetings) {
var type = typeof settings.greetings;
if (type === 'string') {
if (type === 'string' || type instanceof String) {
self.echo(settings.greetings);
} else if (type === 'function') {
self.echo(function() {
Expand Down
4 changes: 2 additions & 2 deletions js/jquery.terminal.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion js/jquery.terminal.min.js.map

Large diffs are not rendered by default.

0 comments on commit aaa1295

Please sign in to comment.