mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-09 18:52:00 -08:00
Remove incorrect slice parameter.
Remove incorrect slice parameter, which made the ! (not) prefix fail to return any results.
This commit is contained in:
parent
ae3ed86e6f
commit
d321508437
1 changed files with 1 additions and 1 deletions
|
|
@ -28,7 +28,7 @@ exports.limit = function(source,operator,options) {
|
|||
// Slice the array if necessary
|
||||
var limit = Math.min(source.length,parseInt(operator.operand,10));
|
||||
if(operator.prefix === "!") {
|
||||
results = source.slice(source.length - limit,limit);
|
||||
results = source.slice(source.length - limit);
|
||||
} else {
|
||||
results = source.slice(0,limit);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue