Skip to content

Releases: tobibeer/tw5-split

0.8.0

19 Jan 18:30

Choose a tag to compare

  • split:before[.] to return input title up until the first match of .
  • split:after[.] to return input title after the first match of .
  • split:beforelast[.] to return input title up until the last match of .
  • split:afterlast[.] return input title after the last match of .
  • unit tests for the above & split:at[1,2]

0.7.2

17 Jan 22:17

Choose a tag to compare

  • added at[<character>,<length>] to emulate substr (starting at 1, though)
  • added !at[<character>,<length>] to cut out what substr would have fetched

0.7.0

30 Dec 11:04

Choose a tag to compare

  • added suffix list to parse the operand as a stringified list or retrieve items listed in list fields
  • changed syntax for prefix and suffix in a non-backwards-compatible way
    • fix as follows:
      • split:+(prefix) to:
        split:+\prefix\
      • split:(suffix)+ to:
        split:\suffix\+

0.6.6 Bugfix

25 Dec 09:48

Choose a tag to compare

  • fixed bugs where...
    • split did not properly identify non-splits and thus returned unexpected items
    • $strict was ignored due to wrong regex

0.6.5 pos & num

24 Dec 13:31

Choose a tag to compare

  • added pos, num, and strict
  • separate options for split items of each input title or final result list
    • pos, num, first, !first, last, !last
    • $pos, $num, $first, !$first, $last, !$last
  • extracted getArrayItems into utils function
  • added test edition

0.6.0

22 Dec 22:12

Choose a tag to compare

  • modified default behavior to allow duplicates in the output
  • consequently added suffix unique to still allow producing unique sets

0.5.9

17 Dec 12:43

Choose a tag to compare

maintenance: removed superfluous console.log

0.5.8

08 Dec 22:46

Choose a tag to compare

Now ignores blanks, should the split characters be at the beginning or end.

Accidentally incremented the release number twice. ;-)

0.5.6

08 Dec 21:53

Choose a tag to compare

bugfix — mixed up prepend and append in 0.5.0

0.5.5

08 Dec 21:44

Choose a tag to compare

  • added at and keep
  • safer suffix parsing
  • minified