Advertisement
andoird213

Issues Counter

Nov 9th, 2014
194
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. var numsplit = c.split ("#");
  2.     for (var a = 0; a < numsplit.length; a++) {
  3.       var commsplit = c.split (",");
  4.       for (var b = 0; b < commsplit.length; b++) {
  5.         //Logger.log("commasplit" + b);
  6.         if (!commsplit[b].match(/[a-z]/i)) {
  7.           if (!commsplit[b].match(/[–]/i)) {
  8.             //Logger.log("singlenumber");
  9.             total++;
  10.           } else {
  11.             //Logger.log("range");
  12.             var dashsplit = commsplit[b].split("–");
  13.             var diff = dashsplit[1] - dashsplit[0];
  14.             total += diff;
  15.           }
  16.         }
  17.       }
  18.     }
  19.  
  20. [14-11-09 17:50:11:849 PST] numsplit 0
  21. [14-11-09 17:50:11:849 PST] commasplit 0
  22. [14-11-09 17:50:11:849 PST] numsplit 1
  23. [14-11-09 17:50:11:850 PST] commasplit 0
  24. [14-11-09 17:50:11:850 PST] All-Star Western Vol. 3 #16
  25. [14-11-09 17:50:11:850 PST] 0.0
  26. [14-11-09 17:50:11:850 PST] numsplit 0
  27. [14-11-09 17:50:11:850 PST] commasplit 0
  28. [14-11-09 17:50:11:851 PST] numsplit 1
  29. [14-11-09 17:50:11:851 PST] commasplit 0
  30. [14-11-09 17:50:11:851 PST] All-Star Western Vol. 3 #712
  31. [14-11-09 17:50:11:851 PST] 0.0
  32. [14-11-09 17:50:11:852 PST] numsplit 0
  33. [14-11-09 17:50:11:852 PST] commasplit 0
  34. [14-11-09 17:50:11:852 PST] commasplit 1
  35. [14-11-09 17:50:11:852 PST] range found at commasplit 1
  36. [14-11-09 17:50:11:853 PST] numsplit 1
  37. [14-11-09 17:50:11:853 PST] commasplit 0
  38. [14-11-09 17:50:11:853 PST] commasplit 1
  39. [14-11-09 17:50:11:853 PST] range found at commasplit 1
  40. [14-11-09 17:50:11:854 PST] All-Star Western Vol. 3 #0, 1316
  41. [14-11-09 17:50:11:854 PST] 6.0
  42. [14-11-09 17:50:11:854 PST] numsplit 0
  43. [14-11-09 17:50:11:854 PST] commasplit 0
  44. [14-11-09 17:50:11:855 PST] numsplit 1
  45. [14-11-09 17:50:11:855 PST] commasplit 0
  46. [14-11-09 17:50:11:855 PST] All-Star Western Vol. 3 #1721
  47. [14-11-09 17:50:11:855 PST] 0.0
  48. [14-11-09 17:50:11:856 PST] numsplit 0
  49. [14-11-09 17:50:11:856 PST] commasplit 0
  50. [14-11-09 17:50:11:856 PST] numsplit 1
  51. [14-11-09 17:50:11:857 PST] commasplit 0
  52. [14-11-09 17:50:11:857 PST] All-Star Western Vol. 3 #2228
  53. [14-11-09 17:50:11:857 PST] 0.0
  54. [14-11-09 17:50:11:857 PST] numsplit 0
  55. [14-11-09 17:50:11:858 PST] commasplit 0
  56. [14-11-09 17:50:11:858 PST] numsplit 1
  57. [14-11-09 17:50:11:858 PST] commasplit 0
  58. [14-11-09 17:50:11:858 PST] Animal Man Vol. 2 #16
  59. [14-11-09 17:50:11:858 PST] 0.0
  60. [14-11-09 17:50:11:859 PST] numsplit 0
  61. [14-11-09 17:50:11:859 PST] commasplit 0
  62. [14-11-09 17:50:11:859 PST] commasplit 1
  63. [14-11-09 17:50:11:859 PST] range found at commasplit 1
  64. [14-11-09 17:50:11:860 PST] commasplit 2
  65. [14-11-09 17:50:11:860 PST] numsplit 1
  66. [14-11-09 17:50:11:860 PST] commasplit 0
  67. [14-11-09 17:50:11:860 PST] commasplit 1
  68. [14-11-09 17:50:11:861 PST] range found at commasplit 1
  69. [14-11-09 17:50:11:861 PST] commasplit 2
  70. [14-11-09 17:50:11:861 PST] numsplit 2
  71. [14-11-09 17:50:11:862 PST] commasplit 0
  72. [14-11-09 17:50:11:862 PST] commasplit 1
  73. [14-11-09 17:50:11:862 PST] range found at commasplit 1
  74. [14-11-09 17:50:11:862 PST] commasplit 2
  75. [14-11-09 17:50:11:863 PST] Animal Man Vol. 2 #0, 711, Animal Man Annual Vol. 2 #1
  76. [14-11-09 17:50:11:863 PST] 12.0
  77. [14-11-09 17:50:11:863 PST] numsplit 0
  78. [14-11-09 17:50:11:863 PST] commasplit 0
  79. [14-11-09 17:50:11:863 PST] commasplit 1
  80. [14-11-09 17:50:11:864 PST] commasplit 2
  81. [14-11-09 17:50:11:864 PST] range found at commasplit 2
  82. [14-11-09 17:50:11:864 PST] numsplit 1
  83. [14-11-09 17:50:11:864 PST] commasplit 0
  84. [14-11-09 17:50:11:865 PST] commasplit 1
  85. [14-11-09 17:50:11:865 PST] commasplit 2
  86. [14-11-09 17:50:11:865 PST] range found at commasplit 2
  87. [14-11-09 17:50:11:865 PST] numsplit 2
  88. [14-11-09 17:50:11:866 PST] commasplit 0
  89. [14-11-09 17:50:11:866 PST] commasplit 1
  90. [14-11-09 17:50:11:866 PST] commasplit 2
  91. [14-11-09 17:50:11:866 PST] range found at commasplit 2
  92. [14-11-09 17:50:11:867 PST] Animal Man Vol. 2 #1219, Swamp Thing Vol. 5 #12, 1718
  93. [14-11-09 17:50:11:867 PST] 3.0
  94. [14-11-09 17:50:11:868 PST] numsplit 0
  95. [14-11-09 17:50:11:868 PST] commasplit 0
  96. [14-11-09 17:50:11:868 PST] commasplit 1
  97. [14-11-09 17:50:11:869 PST] numsplit 1
  98. [14-11-09 17:50:11:869 PST] commasplit 0
  99. [14-11-09 17:50:11:870 PST] commasplit 1
  100. [14-11-09 17:50:11:870 PST] numsplit 2
  101. [14-11-09 17:50:11:870 PST] commasplit 0
  102. [14-11-09 17:50:11:871 PST] commasplit 1
  103. [14-11-09 17:50:11:871 PST] Animal Man Vol. 2 #2023, Animal Man Annual Vol. 2 #2
  104. [14-11-09 17:50:11:871 PST] 0.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement