Skip to content

Commit 810c465

Browse files
authored
fix: Fix is check in xml FoldMode (#5752)
1 parent e237e54 commit 810c465

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mode/folding/xml.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var Tag = function() {
2323
};
2424

2525
function is(token, type) {
26-
return token.type.lastIndexOf(type + ".xml") > -1;
26+
return token && token.type && token.type.lastIndexOf(type + ".xml") > -1;
2727
}
2828

2929
(function() {

0 commit comments

Comments
 (0)