Skip to content

Commit c800736

Browse files
committed
small refactor
1 parent 084a69d commit c800736

File tree

4 files changed

+7
-9
lines changed

4 files changed

+7
-9
lines changed

js/jquery.terminal-src.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3142,10 +3142,9 @@
31423142
// ---------------------------------------------------------------------
31433143
function fix_brave_prompt(html) {
31443144
var attr_re = /data-text="([^"]*[<>][^"]*)"/g;
3145-
var m = html.match(attr_re);
31463145
// escape angle brackets in attributes
31473146
// BUG: https://community.brave.com/t/634482
3148-
if (m) {
3147+
if (html.match(attr_re)) {
31493148
return html.replace(attr_re, function(_, group) {
31503149
return 'data-text="' + escape(group) + '"';
31513150
});

js/jquery.terminal.js

Lines changed: 3 additions & 4 deletions
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: Mon, 21 Jul 2025 22:29:07 +0000
44+
* Date: Mon, 21 Jul 2025 22:40:37 +0000
4545
*/
4646
/* global define, Map, BigInt */
4747
/* eslint-disable */
@@ -3142,10 +3142,9 @@
31423142
// ---------------------------------------------------------------------
31433143
function fix_brave_prompt(html) {
31443144
var attr_re = /data-text="([^"]*[<>][^"]*)"/g;
3145-
var m = html.match(attr_re);
31463145
// escape angle brackets in attributes
31473146
// BUG: https://community.brave.com/t/634482
3148-
if (m) {
3147+
if (html.match(attr_re)) {
31493148
return html.replace(attr_re, function(_, group) {
31503149
return 'data-text="' + escape(group) + '"';
31513150
});
@@ -5469,7 +5468,7 @@
54695468
// -------------------------------------------------------------------------
54705469
$.terminal = {
54715470
version: '2.45.1',
5472-
date: 'Mon, 21 Jul 2025 22:29:07 +0000',
5471+
date: 'Mon, 21 Jul 2025 22:40:37 +0000',
54735472
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
54745473
color_names: [
54755474
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',

js/jquery.terminal.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

js/jquery.terminal.min.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)