mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
lint: ChangesetUtils
This commit is contained in:
parent
7c51446040
commit
01dd004054
1 changed files with 3 additions and 3 deletions
|
@ -20,7 +20,7 @@
|
||||||
* See the License for the specific language governing permissions and
|
* See the License for the specific language governing permissions and
|
||||||
* limitations under the License.
|
* limitations under the License.
|
||||||
*/
|
*/
|
||||||
exports.buildRemoveRange = function (rep, builder, start, end) {
|
exports.buildRemoveRange = (rep, builder, start, end) => {
|
||||||
const startLineOffset = rep.lines.offsetOfIndex(start[0]);
|
const startLineOffset = rep.lines.offsetOfIndex(start[0]);
|
||||||
const endLineOffset = rep.lines.offsetOfIndex(end[0]);
|
const endLineOffset = rep.lines.offsetOfIndex(end[0]);
|
||||||
|
|
||||||
|
@ -32,7 +32,7 @@ exports.buildRemoveRange = function (rep, builder, start, end) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.buildKeepRange = function (rep, builder, start, end, attribs, pool) {
|
exports.buildKeepRange = (rep, builder, start, end, attribs, pool) => {
|
||||||
const startLineOffset = rep.lines.offsetOfIndex(start[0]);
|
const startLineOffset = rep.lines.offsetOfIndex(start[0]);
|
||||||
const endLineOffset = rep.lines.offsetOfIndex(end[0]);
|
const endLineOffset = rep.lines.offsetOfIndex(end[0]);
|
||||||
|
|
||||||
|
@ -44,7 +44,7 @@ exports.buildKeepRange = function (rep, builder, start, end, attribs, pool) {
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
exports.buildKeepToStartOfRange = function (rep, builder, start) {
|
exports.buildKeepToStartOfRange = (rep, builder, start) => {
|
||||||
const startLineOffset = rep.lines.offsetOfIndex(start[0]);
|
const startLineOffset = rep.lines.offsetOfIndex(start[0]);
|
||||||
|
|
||||||
builder.keep(startLineOffset, start[0]);
|
builder.keep(startLineOffset, start[0]);
|
||||||
|
|
Loading…
Reference in a new issue