Skip to content

Commit

Permalink
fix lint error #982
Browse files Browse the repository at this point in the history
  • Loading branch information
jcubic committed Nov 2, 2024
1 parent 6fad1cc commit 24ea33c
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 9 deletions.
6 changes: 4 additions & 2 deletions js/jquery.terminal-src.js
Original file line number Diff line number Diff line change
Expand Up @@ -6857,6 +6857,8 @@
// ---------------------------------------------------------------------
// :: Replace terminal formatting with html
// ---------------------------------------------------------------------
var href_re = /^(((?:blob:)?https?|file|ftp):\/\/|\.{0,2}\/)/;
var src_re = /^(https?:|file:|blob:|data:)/;
$.terminal.format = function format(str, options) {
var settings = $.extend({}, {
linksNoReferrer: false,
Expand All @@ -6868,11 +6870,11 @@
}, options || {});
// -----------------------------------------------------------------
var valid_href = with_url_validation(function(url) {
return url.match(/^(((?:blob:)?https?|file|ftp):\/\/|\.{0,2}\/)/) || is_path(url);
return url.match(href_re) || is_path(url);
}, settings);
// -----------------------------------------------------------------
var valid_src = with_url_validation(function(url) {
return url.match(/^(https?:|file:|blob:|data:)/) || is_path(url);
return url.match(src_re) || is_path(url);
}, settings);
// -----------------------------------------------------------------
function filter_attr_names(names) {
Expand Down
10 changes: 6 additions & 4 deletions js/jquery.terminal.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
*
* broken image by Sophia Bai from the Noun Project (CC-BY)
*
* Date: Sat, 02 Nov 2024 21:32:11 +0000
* Date: Sat, 02 Nov 2024 21:39:24 +0000
*/
/* global define, Map, BigInt */
/* eslint-disable */
Expand Down Expand Up @@ -5350,7 +5350,7 @@
// -------------------------------------------------------------------------
$.terminal = {
version: 'DEV',
date: 'Sat, 02 Nov 2024 21:32:11 +0000',
date: 'Sat, 02 Nov 2024 21:39:24 +0000',
// colors from https://www.w3.org/wiki/CSS/Properties/color/keywords
color_names: [
'transparent', 'currentcolor', 'black', 'silver', 'gray', 'white',
Expand Down Expand Up @@ -6857,6 +6857,8 @@
// ---------------------------------------------------------------------
// :: Replace terminal formatting with html
// ---------------------------------------------------------------------
var href_re = /^(((?:blob:)?https?|file|ftp):\/\/|\.{0,2}\/)/;
var src_re = /^(https?:|file:|blob:|data:)/;
$.terminal.format = function format(str, options) {
var settings = $.extend({}, {
linksNoReferrer: false,
Expand All @@ -6868,11 +6870,11 @@
}, options || {});
// -----------------------------------------------------------------
var valid_href = with_url_validation(function(url) {
return url.match(/^(((?:blob:)?https?|file|ftp):\/\/|\.{0,2}\/)/) || is_path(url);
return url.match(href_re) || is_path(url);
}, settings);
// -----------------------------------------------------------------
var valid_src = with_url_validation(function(url) {
return url.match(/^(https?:|file:|blob:|data:)/) || is_path(url);
return url.match(src_re) || is_path(url);
}, settings);
// -----------------------------------------------------------------
function filter_attr_names(names) {
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 24ea33c

Please sign in to comment.