Skip to content

Commit

Permalink
Remove debug output and update filename pattern in demo_invalid.yml
Browse files Browse the repository at this point in the history
Removed a debug var_dump in Utils.php which was previously added for regex matching debug purposes. Additionally, the filename pattern in demo_invalid.yml is updated to be more concise, eliminating unnecessary enumeration.
  • Loading branch information
SmetDenis committed Apr 11, 2024
1 parent 495c2bc commit 88567cd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion src/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -299,7 +299,6 @@ public static function testRegex(?string $regex, string $subject): bool
}

try {
var_dump([$regex, $subject]);
if (\preg_match($regex, $subject) === 0) {
return true;
}
Expand Down
2 changes: 1 addition & 1 deletion tests/schemas/demo_invalid.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@

# This schema is invalid because does not match the CSV file (tests/fixtures/demo.csv).

filename_pattern: /(demo-[12]|demo)\.csv)$/i
filename_pattern: /demo(-[123])?\.csv$/

columns:
- name: Name
Expand Down

0 comments on commit 88567cd

Please sign in to comment.