mirror of
https://github.com/discourse/discourse.git
synced 2024-11-24 17:53:23 +08:00
16 lines
252 B
JavaScript
16 lines
252 B
JavaScript
Ember.Test.registerAsyncHelper("formatTextWithSelection", function(
|
|
app,
|
|
text,
|
|
[start, len]
|
|
) {
|
|
return [
|
|
'"',
|
|
text.substr(0, start),
|
|
"<",
|
|
text.substr(start, len),
|
|
">",
|
|
text.substr(start + len),
|
|
'"'
|
|
].join("");
|
|
});
|