Skip to content

Commit 5242ee2

Browse files
committed
chapter 02: fix in isValidLogFilename to fix the test
1 parent 6d01b7b commit 5242ee2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

chapter_02-a-first-unit-test/LogAn/logAnalyzer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ function logAnalyzer() {
44
* @return {boolean}
55
*/
66
function isValidLogFileName(fileName) {
7-
if (!fileName.endsWith('.SLF')) {
7+
if (!fileName.toUpperCase().endsWith('.SLF')) {
88
return false;
99
}
1010

0 commit comments

Comments
 (0)