Skip to content

Commit 3b731bb

Browse files
committed
Better version of the previous patch
1 parent 3d9ec22 commit 3b731bb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/codemirror.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ var CodeMirror = (function() {
1919
var wrapper = targetDocument.createElement("div");
2020
wrapper.className = "CodeMirror";
2121
// Work around http://www.quirksmode.org/bugreports/archives/2006/09/Overflow_Hidden_not_hiding.html
22-
if (window.ActiveXObject && /MSIE [1-7][\. ]/.test(navigator.userAgent))
22+
if (window.ActiveXObject && /MSIE [1-7]\b/.test(navigator.userAgent))
2323
wrapper.style.position = "relative";
2424
// This mess creates the base DOM structure for the editor.
2525
wrapper.innerHTML =

0 commit comments

Comments
 (0)