You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@celix.apache.org by pn...@apache.org on 2020/06/10 19:14:59 UTC

[celix] 01/01: Refactors some variable naming

This is an automated email from the ASF dual-hosted git repository.

pnoltes pushed a commit to branch feature/small_renames
in repository https://gitbox.apache.org/repos/asf/celix.git

commit c18fcd160a7bb071c6b0b7da1aa352eebb6bfe46
Author: Pepijn Noltes <pe...@gmail.com>
AuthorDate: Wed Jun 10 21:14:21 2020 +0200

    Refactors some variable naming
---
 bundles/shell/shell_wui/resources/ansi_up.js | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/bundles/shell/shell_wui/resources/ansi_up.js b/bundles/shell/shell_wui/resources/ansi_up.js
index ca32b83..5d9ef03 100644
--- a/bundles/shell/shell_wui/resources/ansi_up.js
+++ b/bundles/shell/shell_wui/resources/ansi_up.js
@@ -41,7 +41,7 @@
             this.bold = false;
             this.fg = this.bg = null;
             this._buffer = '';
-            this._url_whitelist = { 'http': 1, 'https': 1 };
+            this._url_allow_list = { 'http': 1, 'https': 1 };
         }
         Object.defineProperty(AnsiUp.prototype, "use_classes", {
             get: function () {
@@ -63,12 +63,12 @@
             enumerable: true,
             configurable: true
         });
-        Object.defineProperty(AnsiUp.prototype, "url_whitelist", {
+        Object.defineProperty(AnsiUp.prototype, "url_allow_list", {
             get: function () {
-                return this._url_whitelist;
+                return this._url_allow_list;
             },
             set: function (arg) {
-                this._url_whitelist = arg;
+                this._url_allow_list = arg;
             },
             enumerable: true,
             configurable: true
@@ -384,7 +384,7 @@
             var parts = pkt.url.split(':');
             if (parts.length < 1)
                 return '';
-            if (!this._url_whitelist[parts[0]])
+            if (!this._url_allow_list[parts[0]])
                 return '';
             var result = "<a href=\"" + this.escape_txt_for_html(pkt.url) + "\">" + this.escape_txt_for_html(pkt.text) + "</a>";
             return result;