mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-09-04 20:08:02 +00:00
Fix for removesuffic operator
This commit is contained in:
@@ -19,7 +19,7 @@ exports.removesuffix = function(source,operator,options) {
|
|||||||
var results = [];
|
var results = [];
|
||||||
source(function(tiddler,title) {
|
source(function(tiddler,title) {
|
||||||
if(title.substr(-operator.operand.length).toLowerCase() === operator.operand.toLowerCase()) {
|
if(title.substr(-operator.operand.length).toLowerCase() === operator.operand.toLowerCase()) {
|
||||||
results.push(title.substr(operator.operand.length));
|
results.push(title.substr(0,title.length - operator.operand.length));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
return results;
|
return results;
|
||||||
|
Reference in New Issue
Block a user