forked from 0x2620/oxjs
use [].slice, not Ox.sub
This commit is contained in:
parent
915e98f829
commit
f990f3b857
7 changed files with 10 additions and 10 deletions
|
|
@ -46,7 +46,7 @@ Ox.SourceViewer = function(options, self) {
|
|||
if (!/^\/\//.test(text)) {
|
||||
if (type == 'comment') {
|
||||
i && sections.push({comment: '', code: ''});
|
||||
text = Ox.sub(text, 2, -2);
|
||||
text = text.slice(2, -2);
|
||||
self.options.replaceComment.forEach(function(replace) {
|
||||
text = text.replace(replace[0], replace[1]);
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue