瀏覽代碼

Removed unnecessary whitespace

n1474335 7 年之前
父節點
當前提交
5e7f8e3976
共有 3 個文件被更改,包括 4 次插入4 次删除
  1. 2 2
      src/core/Dish.js
  2. 1 1
      src/core/operations/ByteRepr.js
  3. 1 1
      src/core/operations/Numberwang.js

+ 2 - 2
src/core/Dish.js

@@ -13,7 +13,7 @@ import Utils from "./Utils.js";
  */
  */
 const Dish = function(value, type) {
 const Dish = function(value, type) {
     this.value = value || typeof value == "string" ? value : null;
     this.value = value || typeof value == "string" ? value : null;
-    this.type  = type || Dish.BYTE_ARRAY;
+    this.type = type || Dish.BYTE_ARRAY;
 };
 };
 
 
 
 
@@ -101,7 +101,7 @@ Dish.enumLookup = function(typeEnum) {
  */
  */
 Dish.prototype.set = function(value, type) {
 Dish.prototype.set = function(value, type) {
     this.value = value;
     this.value = value;
-    this.type  = type;
+    this.type = type;
 
 
     if (!this.valid()) {
     if (!this.valid()) {
         const sample = Utils.truncate(JSON.stringify(this.value), 13);
         const sample = Utils.truncate(JSON.stringify(this.value), 13);

+ 1 - 1
src/core/operations/ByteRepr.js

@@ -186,7 +186,7 @@ const ByteRepr = {
         // 0x and \x are added to the beginning if they are selected, so increment the positions accordingly
         // 0x and \x are added to the beginning if they are selected, so increment the positions accordingly
         if (delim === "0x" || delim === "\\x") {
         if (delim === "0x" || delim === "\\x") {
             pos[0].start += 2;
             pos[0].start += 2;
-            pos[0].end   += 2;
+            pos[0].end += 2;
         }
         }
         return pos;
         return pos;
     },
     },

+ 1 - 1
src/core/operations/Numberwang.js

@@ -16,7 +16,7 @@ const Numberwang = {
     run: function(input, args) {
     run: function(input, args) {
         let output;
         let output;
         if (!input) {
         if (!input) {
-            output =  "Let's play Wangernumb!";
+            output = "Let's play Wangernumb!";
         } else {
         } else {
             const match = input.match(/(f0rty-s1x|shinty-six|filth-hundred and neeb|-?√?\d+(\.\d+)?i?([a-z]?)%?)/i);
             const match = input.match(/(f0rty-s1x|shinty-six|filth-hundred and neeb|-?√?\d+(\.\d+)?i?([a-z]?)%?)/i);
             if (match) {
             if (match) {