mirror of
https://github.com/discourse/discourse.git
synced 2024-11-30 19:05:18 +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("");
|
|
});
|