mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 12:43:39 +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("");
|
|
});
|