Skip to content

Commit 914407a

Browse files
committed
Minor offset correction in script tag closure detection
1 parent c87241b commit 914407a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/htmldiff.coffee

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ html_to_tokens = (html)->
2222
when 'script'
2323
if is_end_of_tag char
2424
current_word += '>'
25-
end = current_word.substr current_word.length - 8
25+
end = current_word.substr current_word.length - 9
2626
if end is '</script>'
2727
words.push current_word
2828
current_word = ''

0 commit comments

Comments
 (0)