mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-04-20 23:46:14 -04:00
Changeset: Only pass strings to parseNum()
This commit is contained in:
parent
7ec0d5f385
commit
18a6b7279c
1 changed files with 1 additions and 1 deletions
|
@ -158,7 +158,7 @@ exports.opIterator = (opsStr) => {
|
||||||
const op = optOp || exports.newOp();
|
const op = optOp || exports.newOp();
|
||||||
if (regexResult[0]) {
|
if (regexResult[0]) {
|
||||||
op.attribs = regexResult[1];
|
op.attribs = regexResult[1];
|
||||||
op.lines = exports.parseNum(regexResult[2] || 0);
|
op.lines = exports.parseNum(regexResult[2] || '0');
|
||||||
op.opcode = regexResult[3];
|
op.opcode = regexResult[3];
|
||||||
op.chars = exports.parseNum(regexResult[4]);
|
op.chars = exports.parseNum(regexResult[4]);
|
||||||
regexResult = nextRegexMatch();
|
regexResult = nextRegexMatch();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue