Skip to content

Commit 0639e70

Browse files
committed
Incorrect length check
1 parent fa459f6 commit 0639e70

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

scripts/validate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ var preProcessing = {
1717
transformCSSClasses: function (vttContent) {
1818
// This function should only be passed one cue at a time.
1919
// Throw an error if the string checked is more than 1000 characters.
20-
if ( vttContent > 1000 ) {
20+
if ( vttContent.length > 1000 ) {
2121
throw new Error( "Input too long" );
2222
}
2323
return vttContent.replace(

0 commit comments

Comments
 (0)