mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 07:33:38 +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("");
|
|
});
|