mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 14:13:43 +01:00
Don't use String.startsWith, use slice instead.
- String.startsWith is not supported in IE
This commit is contained in:
+1
-1
@@ -26,7 +26,7 @@ define [
|
||||
if (
|
||||
change.action in ['remove', 'insert'] and
|
||||
((_.any(change.lines, (line) -> line.match(/\\label\{[^\}\n\\]{0,80}\}/))) or
|
||||
(commandFragment?.length > 2 and commandFragment.startsWith('\\label{')))
|
||||
(commandFragment?.length > 2 and commandFragment.slice(0,7) == '\\label{'))
|
||||
)
|
||||
@scheduleLoadLabelsFromOpenDoc()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user