discourse/test/javascripts/helpers/d-editor-helper.js.es6

Failed to ignore revisions in .git-blame-ignore-revs.

12 lines
218 B
Plaintext
Raw Normal View History

export default function formatTextWithSelection(text, [start, len]) {
2018-07-29 16:51:32 -04:00
return [
'"',
text.substr(0, start),
"<",
text.substr(start, len),
">",
text.substr(start + len),
'"'
].join("");
}