mirror of
https://github.com/overleaf/overleaf.git
synced 2024-12-29 07:52:08 +00:00
Don't use String.startsWith, use slice instead.
- String.startsWith is not supported in IE
This commit is contained in:
parent
9a15420c4e
commit
51e3a6b3a3
1 changed files with 1 additions and 1 deletions
|
@ -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()
|
||||
|
||||
|
|
Loading…
Reference in a new issue