Skip to content

Commit faab67d

Browse files
committed
Update JS console function list.
1 parent 39958a9 commit faab67d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pre-commit/2-js-debug.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ function test_file {
1313
# Set +e before and -e after for _optional_ linters (i.e.: that will only
1414
# output messages upon commit, e.g.: style linters).
1515
set +e
16-
grep -i -E '\b(console\.)\b' $file
16+
grep -i -E '\bconsole\.(assert|clear|count|countReset|debug|dir|dirxml|error|exception|group|groupCollapsed|groupEnd|info|log|profile|profileEnd|table|time|timeEnd|timeLogtimeStamp|trace|warn)\b' $file
1717
set -e
1818
}
1919

0 commit comments

Comments
 (0)