No flags found
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
04db121
... +0 ...
f1feb12
Use flags to group coverage reports by test type, project and/or folders.
Then setup custom commit statuses and notifications for each flag.
e.g., #unittest #integration
#production #enterprise
#frontend #backend
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% |
#5
f1feb12
#5
04db121