Sébastien Helleu
39f2591cf5
tests: add tests on ANSI default text/background colors
2020-02-08 10:29:07 +01:00
Sébastien Helleu
84648a5cd8
tests: add eval tests with debug enabled
2020-02-04 20:56:59 +01:00
Sébastien Helleu
f76a5a8b57
tests: add unit tests on function util_file_get_content
2020-02-03 21:39:06 +01:00
Sébastien Helleu
3edae5af86
tests: add unit tests on function util_get_time_diff
2020-02-02 13:58:35 +01:00
Sébastien Helleu
d2dda92daf
tests: add eval tests with hdata variables of different types
2020-01-27 23:04:24 +01:00
Sébastien Helleu
b7c09ed084
tests: add eval tests on conditions with text after closing parenthesis
2020-01-27 23:04:24 +01:00
Sébastien Helleu
a6a6fb74c2
tests: add eval tests on conditions with leading and trailing spaces (ignored)
2020-01-27 23:04:24 +01:00
Sébastien Helleu
2839dc7ddf
tests: add eval tests on "regex not matching" comparison
2020-01-27 23:04:24 +01:00
Sébastien Helleu
0975c407e0
tests: add eval tests with hdata list name and pointer
2020-01-27 23:04:24 +01:00
Sébastien Helleu
201b4da169
tests: add eval tests with buffer local variables
2020-01-27 23:04:24 +01:00
Sébastien Helleu
8107b5d162
tests: add eval tests on options with different types
2020-01-27 23:04:24 +01:00
Sébastien Helleu
dd13393896
tests: add eval test with empty value for "date:"
2020-01-27 23:04:24 +01:00
Sébastien Helleu
70f0c81a2c
tests: add eval tests with invalid values for "modifier:"
2020-01-27 23:04:24 +01:00
Sébastien Helleu
6d9a247df3
tests: add eval tests with invalid values for "repeat:"
2020-01-27 23:04:24 +01:00
Sébastien Helleu
1914ceb74f
tests: add eval tests with invalid values for "cut:" and "cutscr:"
2020-01-27 23:04:22 +01:00
Sébastien Helleu
34bb43379a
tests: add eval test with invalid value for "hide:"
2020-01-27 21:21:01 +01:00
Sébastien Helleu
070e86bd6e
tests: add eval test with invalid regex group
2020-01-27 21:17:17 +01:00
Sébastien Helleu
1d77b9742e
tests: add evaluation tests with ternary operator and escape of prefix ("$")
2020-01-27 21:09:54 +01:00
Sébastien Helleu
d91d1ebb8c
tests: add other calc tests with multiple operators
...
The order of operators are different from the initial test, so this increases
the code coverage in wee-calc.c.
2020-01-27 20:54:23 +01:00
Sébastien Helleu
feb6258910
core: update copyright dates
2020-01-04 10:41:26 +01:00
Sébastien Helleu
e612e63140
core: fix evaluation of condition with nested "if" ( closes #1434 )
2019-12-18 21:22:36 +01:00
Sébastien Helleu
3dab07d659
tests: add unit tests on hash algorithms with salt (issue #635 )
2019-11-25 23:02:05 +01:00
Sébastien Helleu
8fc8f728d4
core: add reverse of string for screen in evaluation of expressions with "revscr:"
2019-10-12 20:14:36 +02:00
Sébastien Helleu
88aa82d672
core: add support of modifiers in evaluation of expressions with "modifier:name,data,string" (issue #60 )
2019-10-06 09:13:35 +02:00
Sébastien Helleu
90f711a965
core: add function to convert WeeChat colors to ANSI colors (issue #528 )
2019-10-01 18:31:41 +02:00
Sébastien Helleu
177fa6c528
core: add support of reverse video in ANSI color codes
2019-10-01 18:31:41 +02:00
Sébastien Helleu
a8ca4b5b3a
tests: add tests on GUI color functions
2019-10-01 18:31:41 +02:00
Sébastien Helleu
ae38b11407
irc: add "user" in output of irc_message_parse ( closes #136 )
2019-09-27 20:52:00 +02:00
Sébastien Helleu
3a356f109f
core: add power operator "**" in calc expressions (issue #997 )
2019-09-24 21:03:56 +02:00
Sébastien Helleu
7d795c4d53
core: fix wrong results with the unary minus in calc expressions
2019-09-24 20:49:48 +02:00
Sébastien Helleu
e1a4612797
core: ignore color codes in ${length:xxx} and ${lengthscr:xxx}
2019-09-21 13:54:36 +02:00
Sébastien Helleu
dcfc4e8ed5
core: add "length:xxx" and "lengthscr:xxx" in evaluation of expressions
2019-09-21 07:56:21 +02:00
Sébastien Helleu
997894edc0
core: add calculation of expression in evaluation of expressions with "calc:..." (issue #997 )
2019-09-20 21:37:01 +02:00
Tobias Stoeckmann
f7b84fcc67
Fixed segfault during excessive evaluation.
...
It is possible to trigger a segmentation fault while processing
an evaluation of repeating string. On a Linux 64 bit system,
enter this (or adjust arguments for 32 bit accordingly):
/eval -n ${repeat:1073741824,----}
It will overflow an integer calculation because int instead of
size_t is used. Proper check of int limitations fixes this issue.
I haven't changed this specific piece of code to size_t because it
would crash in other parts of the code tree instead. For now, int
is a limitating factor when it comes to strings (and should be
enough for sane use cases).
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
2019-09-17 21:26:52 +02:00
Sébastien Helleu
608ec9f483
core: add values djb2_32 and sum_32 for option weechat.look.nick_color_hash (issue #1394 )
2019-08-20 21:20:33 +02:00
Sébastien Helleu
7f62985f89
core: use fixed-width integer for computing hashtable DJB2 key hash ( closes #1394 )
2019-08-19 23:29:22 +02:00
Sébastien Helleu
80f103b68a
core: use fixed-width integer for computing nick hash (issue #1394 )
2019-08-19 23:27:11 +02:00
Andrew Potter
0957231d30
api: add function list_user_data (issue #666 )
2019-08-10 12:55:43 +02:00
Sébastien Helleu
b4215ee466
tests: add tests on IRC function irc_nick_is_nick
2019-08-06 22:13:10 +02:00
Sébastien Helleu
b6cc5ef70f
irc: fix length of user/nick/host in split of messages ( closes #1387 )
2019-08-04 16:39:18 +02:00
Sébastien Helleu
59ba378eec
tests: add missing space after name of function
2019-08-04 14:39:58 +02:00
Sébastien Helleu
4fa62a83f1
tests: add unit tests on IRC functions irc_message_split* (issue #1387 )
2019-08-04 14:39:58 +02:00
Sébastien Helleu
067f237ec3
tests: add unit tests on IRC function irc_message_convert_charset
2019-08-04 14:04:45 +02:00
Sébastien Helleu
c46255b1d0
tests: add unit tests on IRC functions irc_message_parse and irc_message_parse_to_hashtable
2019-08-03 13:57:50 +02:00
Sébastien Helleu
d79e0cbd31
tests: add unit tests on IRC function irc_message_replace_vars
2019-08-03 11:34:42 +02:00
Sébastien Helleu
28d79d0c93
tests: add unit tests on IRC functions irc_message_get_{nick,address}_from_host
2019-08-03 11:30:35 +02:00
Sébastien Helleu
82a92bd4e9
irc: add unit tests on ignore functions
2019-07-10 19:20:09 +02:00
Sébastien Helleu
9178156354
api: add argument "strip_items" in function string_split
2019-06-15 20:47:14 +02:00
Sébastien Helleu
866a29c7e6
core: check that string pointer is not NULL in function "string_shared_get"
2019-06-15 17:21:06 +02:00
Sébastien Helleu
2073408b86
irc: fix parsing of MODE command when there are colons after the first mode argument ( closes #1296 )
2019-05-10 19:29:58 +02:00