Skip to content
This repository was archived by the owner on Nov 8, 2024. It is now read-only.

Commit d12243b

Browse files
committed
style: raise cognitive load in exchange to making ESLint happy
1 parent c27bf85 commit d12243b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/smoke-test.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ function uncommentPythonCodeBlocks(content) {
2222
.split(/\r?\n/)
2323
.map((line) => {
2424
if (insidePythonCodeBlock) {
25-
line = line.replace(/^ #/, ' ');
26-
quotationMarksSeen += /^ """/.test(line) ? 1 : 0;
25+
line = line.replace(/^ {6}#/, ' ');
26+
quotationMarksSeen += /^ {6}"""/.test(line) ? 1 : 0;
2727
insidePythonCodeBlock = quotationMarksSeen < 2;
2828
} else {
2929
quotationMarksSeen = 0;

0 commit comments

Comments
 (0)