mirror of
https://github.com/Jermolene/TiddlyWiki5.git
synced 2026-01-04 08:12:14 -08:00
Fix for removesuffic operator
This commit is contained in:
parent
dcf4e93a32
commit
2e3221c4e0
1 changed files with 1 additions and 1 deletions
|
|
@ -19,7 +19,7 @@ exports.removesuffix = function(source,operator,options) {
|
|||
var results = [];
|
||||
source(function(tiddler,title) {
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue