mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 01:20:30 +00:00
Removed unused vars + some whitespace (#2106)
This commit is contained in:
parent
f575389d89
commit
bf253a603b
@ -20,7 +20,7 @@ Parses an operation (i.e. a run) within a filter string
|
|||||||
Returns the new start position, after the parsed operation
|
Returns the new start position, after the parsed operation
|
||||||
*/
|
*/
|
||||||
function parseFilterOperation(operators,filterString,p) {
|
function parseFilterOperation(operators,filterString,p) {
|
||||||
var operator, operand, bracketPos, curlyBracketPos;
|
var nextBracketPos, operator;
|
||||||
// Skip the starting square bracket
|
// Skip the starting square bracket
|
||||||
if(filterString.charAt(p++) !== "[") {
|
if(filterString.charAt(p++) !== "[") {
|
||||||
throw "Missing [ in filter expression";
|
throw "Missing [ in filter expression";
|
||||||
@ -33,7 +33,7 @@ function parseFilterOperation(operators,filterString,p) {
|
|||||||
operator.prefix = filterString.charAt(p++);
|
operator.prefix = filterString.charAt(p++);
|
||||||
}
|
}
|
||||||
// Get the operator name
|
// Get the operator name
|
||||||
var nextBracketPos = filterString.substring(p).search(/[\[\{<\/]/);
|
nextBracketPos = filterString.substring(p).search(/[\[\{<\/]/);
|
||||||
if(nextBracketPos === -1) {
|
if(nextBracketPos === -1) {
|
||||||
throw "Missing [ in filter expression";
|
throw "Missing [ in filter expression";
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user