Hi Mohammad

The removeprefix operator has no effect if the operand is blank: 
[[foo]removeprefix[]] equals "foo". It completely removes items in the input 
list that do not have the specified prefix.

Best wishes

Jeremy

--
Jeremy Ruston
[email protected]
https://jermolene.com

> On 14 Feb 2019, at 09:12, Mohammad <[email protected]> wrote:
> 
> It seems when the input to these operator is empty they still work!!
> 
> 
> \define macz(xx, pp:"")
> <$list filter="[<__xx__>removeprefix<__pp__>]">
> Test: <<currentTiddler>>
> </$list>
> \end
> 
> 
> <<macz xx:"abKIT-1" ab>>
> <<macz xx:"abKIT-2" >>
> <<macz xx:"abKIT-3" uu>>
> 
> 
> Return:
> 
> Test: KIT-1
> 
> Test: abKIT-2 
> 
> 
> 
> 
> Example 2 should return empty value!!
> 
> Is this a bug?
> 
> --Mohammad
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "TiddlyWiki" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at https://groups.google.com/group/tiddlywiki.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/tiddlywiki/b5e7f2c4-3cd5-4e8a-a0ad-ed5b1eb2c116%40googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
You received this message because you are subscribed to the Google Groups 
"TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tiddlywiki/09245428-C74F-4539-B4DB-6CCCA1CAFEEB%40gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to