mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
Merge pull request #2625 from overleaf/bg-fix-spelling-stateful-regexp
fix stateful regexp usage in SpellCheckManager GitOrigin-RevId: 6ac93e6a9227a638b30882ce99771e30c1a097c1
This commit is contained in:
parent
5f712645ed
commit
130f97d621
1 changed files with 1 additions and 0 deletions
|
@ -337,6 +337,7 @@ define([], function() {
|
|||
let rowIdx = changedRowNums[row]
|
||||
line = this.blankOutBlacklistedCommands(line)
|
||||
var result
|
||||
WORD_REGEX.lastIndex = 0 // reset global stateful regexp for this usage
|
||||
while ((result = WORD_REGEX.exec(line))) {
|
||||
let word = result[0]
|
||||
if (word[0] === "'") {
|
||||
|
|
Loading…
Reference in a new issue