Skip to content

Commit

Permalink
regex again
Browse files Browse the repository at this point in the history
  • Loading branch information
DE7924 committed Dec 18, 2024
1 parent 8fdfe07 commit a6834ff
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions dist/index.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions src/scripts/analyze.ts
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ export const litAnalyzer = async (command: Command): Promise<stepResponse> => {
const table = lines
.map((line) => {
const match = line.match(
/^(?<file>\.\/[^\s]+)\n\n\s+(?<message>[^\n]+)\n\s+(?<line>\d+):/,
/(?<file>\.\/[^\s]+)\n\s+(?<message>[^\n]+)\n\s+(?<line>\d+):/m,
);
if (match) {
const [_, file, line, message] = match;

Check failure on line 79 in src/scripts/analyze.ts

View workflow job for this annotation

GitHub Actions / code-quality

'_' is assigned a value but never used
Expand All @@ -85,7 +85,7 @@ export const litAnalyzer = async (command: Command): Promise<stepResponse> => {

const problemCount = lines.filter((line) =>
line.match(
/^(?<file>\.\/[^\s]+)\n\n\s+(?<message>[^\n]+)\n\s+(?<line>\d+):/,
/(?<file>\.\/[^\s]+)\n\s+(?<message>[^\n]+)\n\s+(?<line>\d+):/m,
),
).length;

Expand Down

0 comments on commit a6834ff

Please sign in to comment.