mirror of
https://github.com/Pomax/BezierInfo-2.git
synced 2025-08-31 12:01:54 +02:00
better sketched, packing
This commit is contained in:
@@ -5,7 +5,7 @@ var ed = "\\]";
|
||||
* Is there going to be anything to convert here?
|
||||
*/
|
||||
function hasLaTeX(input) {
|
||||
return input.indexOf(op) + input.indexOf(ed) >= 0;
|
||||
return input.indexOf(op) !== -1 && input.indexOf(ed) !== -1;
|
||||
}
|
||||
|
||||
/**
|
||||
|
@@ -6,7 +6,7 @@ var op = "<pre>";
|
||||
var ed = "</pre>";
|
||||
|
||||
function hasTokens(input) {
|
||||
return input.indexOf(op) + input.indexOf(ed) >= 0;
|
||||
return input.indexOf(op) !== -1 && input.indexOf(ed) !== -1;
|
||||
}
|
||||
|
||||
function fixPreBlocks(source) {
|
||||
|
Reference in New Issue
Block a user