Showing 1 of 2 files from the diff.
@@ -42,10 +42,14 @@
Loading
42 | 42 | } |
|
43 | 43 | ||
44 | 44 | if (!end) { |
|
45 | - | const regex = /[ \t]/ |
|
46 | - | let i = value.length |
|
47 | - | while (regex.test(value.charAt(--i))); |
|
48 | - | return value.slice(0, i + 1) |
|
45 | + | let endIndex = value.length - 1 |
|
46 | + | let char = value.charAt(endIndex) |
|
47 | + | while (char === ' ' || char === '\t') { |
|
48 | + | endIndex-- |
|
49 | + | char = value.charAt(endIndex) |
|
50 | + | } |
|
51 | + | ||
52 | + | value = value.slice(0, endIndex + 1) |
|
49 | 53 | } |
|
50 | 54 | ||
51 | 55 | return value |
Files | Coverage |
---|---|
index.js | 100.00% |
Project Totals (1 files) | 100.00% |
2593774772
2593774772
Sunburst
The inner-most circle is the entire project, moving away from the center are folders then, finally, a single file.
The size and color of each slice is representing the number of statements and the coverage, respectively.
Icicle
The top section represents the entire project. Proceeding with folders and finally individual files.
The size and color of each slice is representing the number of statements and the coverage, respectively.