Skip to content

Commit e09914b

Browse files
committed
build: add additional backslashes
1 parent 1f51c66 commit e09914b

File tree

5 files changed

+6
-10
lines changed

5 files changed

+6
-10
lines changed

.github/workflows/scripts/run_tests_coverage

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ compare_cov() {
122122

123123
if [ "$old_cov_value" == 0 ]; then
124124
new_cov_percentage=$(awk "BEGIN {printf \"%.2f\", $new_cov_value*100}")
125-
echo "\$\\\\color{green}+$new_cov_percentage\\\\%\$"
125+
echo "\$\\\\\\\\color{green}+$new_cov_percentage\\\\\\\\%\$"
126126
else
127127
percentage_change=$(awk "BEGIN {printf \"%.2f\", (($new_cov_value - $old_cov_value) / $old_cov_value) * 100}")
128128
color="green"
@@ -133,7 +133,7 @@ compare_cov() {
133133
sign="-"
134134
color="red"
135135
fi
136-
echo "\$\\\\color{$color}$sign$percentage_change\\\\%\$"
136+
echo "\$\\\\\\\\color{$color}$sign$percentage_change\\\\\\\\%\$"
137137
fi
138138
}
139139

@@ -167,7 +167,7 @@ main() {
167167
pkg_functions_cov=${pkg_cov_values[2]}
168168
pkg_lines_cov=${pkg_cov_values[3]}
169169

170-
pkg_cov_fractions=($(cat reports/coverage/lcov-report/$pkg/lib/index.html | grep "fraction" | grep -oP '\d+/\d+' | awk -F'/' '{if ($1<$2) print "$\\\\color{red}" $0 "$"; else print "$\\\\color{green}" $0 "$"}'))
170+
pkg_cov_fractions=($(cat reports/coverage/lcov-report/$pkg/lib/index.html | grep "fraction" | grep -oP '\d+/\d+' | awk -F'/' '{if ($1<$2) print "$\\\\\\\\color{red}" $0 "$"; else print "$\\\\\\\\color{green}" $0 "$"}'))
171171
pkg_statements_cov_fraction=${pkg_cov_fractions[0]}
172172
pkg_branches_cov_fraction=${pkg_cov_fractions[1]}
173173
pkg_functions_cov_fraction=${pkg_cov_fractions[2]}

lib/node_modules/@stdlib/buffer/alloc-unsafe/lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ var Buffer = require( '@stdlib/buffer/ctor' );
3535
* - The underlying memory of returned `Buffer` instances is not initialized. Memory contents are unknown and may contain sensitive data.
3636
* - When the size is less than half the pool size (specified on the `Buffer` constructor), memory is allocated from the `Buffer` pool for faster allocation of new `Buffer` instances.
3737
*
38-
*
3938
* @param {NonNegativeInteger} size - number of bytes to allocate
4039
* @throws {TypeError} must provide a nonnegative integer
4140
* @returns {Buffer} new `Buffer` instance

lib/node_modules/@stdlib/buffer/alloc-unsafe/lib/polyfill.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ var Buffer = require( '@stdlib/buffer/ctor' );
3535
* - The underlying memory of returned `Buffer` instances is not initialized. Memory contents are unknown and may contain sensitive data.
3636
* - When the size is less than half the pool size (specified on the `Buffer` constructor), memory is allocated from the `Buffer` pool for faster allocation of new `Buffer` instances.
3737
*
38-
*
3938
* @param {NonNegativeInteger} size - number of bytes to allocate
4039
* @throws {TypeError} must provide a nonnegative integer
4140
* @returns {Buffer} new `Buffer` instance
@@ -48,7 +47,7 @@ function allocUnsafe( size ) {
4847
if ( !isNonNegativeInteger( size ) ) {
4948
throw new TypeError( format( 'invalid argument. Must provide a nonnegative integer. Value: `%s`.', size ) );
5049
}
51-
return new Buffer( size ); // eslint-disable-line no-buffer-constructor
50+
return new Buffer( size );
5251
}
5352

5453

lib/node_modules/@stdlib/buffer/from-arraybuffer/lib/main.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,6 @@ var version = require( './node_version.js' );
3939
* - `<6.0.0`: if provided an empty ArrayBuffer, the function returns an empty Buffer which is **not** an ArrayBuffer view.
4040
* - otherwise, the function returns a view of an ArrayBuffer without copying the underlying memory.
4141
*
42-
*
4342
* @param {ArrayBuffer} buf - ArrayBuffer instance
4443
* @param {NonNegativeInteger} [byteOffset=0] - index specifying the location of the first buffer byte
4544
* @param {NonNegativeInteger} [length=buf.byteLength] - number of buffer bytes

lib/node_modules/@stdlib/buffer/from-arraybuffer/lib/polyfill.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,6 @@ var version = require( './node_version.js' );
4242
* - `>=3.0.0`: if provided a byte offset, the function copies `ArrayBuffer` bytes to a new `Buffer` instance; otherwise, the function returns a view of an `ArrayBuffer` without copying the underlying memory.
4343
* - `<6.0.0`: if provided an empty ArrayBuffer, the function returns an empty Buffer which is **not** an ArrayBuffer view.
4444
*
45-
*
4645
* @param {ArrayBuffer} buf - ArrayBuffer instance
4746
* @param {NonNegativeInteger} [byteOffset=0] - index specifying the location of the first buffer byte
4847
* @param {NonNegativeInteger} [length=buf.byteLength] - number of buffer bytes
@@ -97,9 +96,9 @@ function fromArrayBuffer( buf, byteOffset, length ) {
9796
}
9897
// Address Node <= v5.x where providing an empty ArrayBuffer throws an error:
9998
if ( buf.byteLength === 0 ) {
100-
return new Buffer( [] ); // eslint-disable-line no-buffer-constructor
99+
return new Buffer( [] );
101100
}
102-
return new Buffer( buf ); // eslint-disable-line no-buffer-constructor
101+
return new Buffer( buf );
103102
}
104103

105104

0 commit comments

Comments
 (0)