Use charAt rather than string index
Older versions of IE do not support [] access to string contents so charAt must be used. Fixes #677
This commit is contained in:
+2
-2
@@ -6,8 +6,8 @@
|
||||
|
||||
function stripFlags(open, close) {
|
||||
return {
|
||||
left: open[2] === '~',
|
||||
right: close[0] === '~' || close[1] === '~'
|
||||
left: open.charAt(2) === '~',
|
||||
right: close.charAt(0) === '~' || close.charAt(1) === '~'
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user