Saq Imtiaz
b6ce353a7d
Fix: resolved search-replace operator regexp encoding bug ( #6162 )
...
* fix: resolved search-replace operator bug with $ character in replacement strings, added test and more examples
* fix: reset regexp after each title
2021-11-01 13:24:30 +00:00
Simon Huber
c13f04d838
Add m
flag for multiline matches to search-replace filter operator ( #5968 )
...
* add m flag to search-replace operator and add tests
* update documentation
* Update test-filters.js
* Update test-filters.js
* Update search-replace Operator (Examples).tid
* Fix "Hello There" title (HelloThere)
2021-08-29 17:44:34 +01:00
jeremy@jermolene.com
83ee363cb4
Add charcode operator to make it easier to generate strings containing control characters
...
Avoids some confusing hacks. @saqimtiaz I'm guessing you might have already done something like this?
2021-06-22 21:52:00 +01:00
Joe Bordes
82ec63e711
style(App) eliminate whitespace at the end of code lines ( #5735 )
2021-05-30 19:20:17 +01:00
Robin Munn
fd3e77d38f
"dedupe" and "raw" suffixes for enlist-input operator ( #5152 )
...
Includes unit tests.
2020-11-30 17:52:46 +00:00
saqimtiaz
8fc6910c03
Added string operator pad[] along with tests and docs ( #5146 )
2020-11-30 17:43:50 +00:00
saqimtiaz
66636d1a86
Docs for new operators ( #4994 )
...
* Docs for is[draft]
* Better error handling for suffixes
* Docs for search-replace operator
* Added tests for search-replace operator
* Docs for toggle operator
2020-11-08 09:34:05 +00:00
saqimtiaz
53922d3558
search-replace string operator ( #4973 )
...
* Added search-replace operator
* Merge with master
* Add try catch around new RegExp
* Better error handling
2020-11-07 10:09:11 +00:00
saqimtiaz
e7245a709c
Add string operator enlist-input[] ( #4948 )
...
* Add string operator titlelist[]
* Update strings.js
* Update strings.js
* Add tests
2020-11-01 17:11:46 +00:00
Robin Munn
d5cf4112fa
Joining an empty list should return an empty list ( #4853 )
2020-09-24 18:37:51 +01:00
Robin Munn
5202441769
Add suffix and parameter to trim operator ( #4811 )
...
* Add suffix and parameter to trim operator
Fixes #4809
* Unit tests for new trim operator parameters
* Mention trim operator in 5.1.23 release notes
* Address review comments
* Move regex escaping into utils.js trim functions
This way the trimPrefix and trimSuffix functions from utils.js are safe
to call without regex-escaping their parameters, which should make them
easier to use from other parts of the Javascript code.
2020-08-29 12:27:58 +01:00
Cameron Fischer
65347ae858
Fixed join filter operator to never returns null ( #4396 )
...
If the operator were passed an empty list, it would return null
which could cause some proceeding operators to crash.
2020-04-14 17:49:38 +01:00
Jeremy Ruston
6582b106ee
Fixes to split operator, plus instructions for using it to do search and replace
2019-06-21 10:21:52 +01:00
Robin Munn
9b27f82a80
Fix sentencecase operator, add titlecase operator ( #4006 )
2019-06-21 08:24:02 +01:00
Jeremy Ruston
2e2ed7902c
Add sentencecase operator
...
Fixes #4000
2019-06-19 12:11:02 +01:00
Jeremy Ruston
73eb7fbd4e
Maths operators: Remove concat (same as addsuffix) and add splitregexp
2019-06-13 16:52:19 +01:00
Jermolene
9d7d3fefa0
Split operator: Remove empty strings when splitting
...
See the discussion on 9b2d527; thanks @kookma
2019-02-08 15:59:07 +00:00
Jermolene
7df58a6813
Fixed bug with length operator
...
Thanks @BurningTreeC
2019-02-07 12:56:12 +00:00
Jermolene
dc29acd656
Fixed bug with split operator
2019-02-07 12:45:07 +00:00
Jermolene
9b2d52716a
Add new string operators: length, join, split, concat etc.
2019-02-07 11:18:53 +00:00