Marco Capetta
51454fd2b5
TT#156754 Add the new function NGCPDlgCounters:is_in_set_regex
...
The new function behaves like NGCPDlgCounters:is_in_set but
it uses a regex match to see if the key is contained in the list
Additionally added the helper function 'contains_regex' in the
utils.lua
* ignore vscode files
Change-Id: Iee89f5298ced10c2a9cdf7ebc19a4c0945b8cc9d
4 years ago
Victor Seva
cb5de0e61c
TT#99900 utils: add table.keys()
...
* don't use 'string' as variable
Change-Id: Ie4412008a3084cb2b8ea793e5c3f82ce8ff86d68
5 years ago
Victor Seva
48b0d4d018
TT#78651 Refactor code
...
* use proper class inherance
Change-Id: I69c9b14c64762ec1a1e17267961830f4794f2246
6 years ago
Victor Seva
34ad538775
MT#17841 ngcp/utils.lua: implement utils.string.explode_values()
...
utils.string.explode_values("123") => {'1','12','123'}
Change-Id: Ifa2260b6f53714d1fdae70485e3ccff3e0872a31
10 years ago
Victor Seva
51a8be0b69
MT#12025 code refactoring with luacheck help
...
- don't leak globals, libs should return metatable
- fix requires
- remove unnecessary declarations of variables
- split mocks/sr
- remove unused tests
- fix tests
Change-Id: I2bda46410cf62c61c38ce1a9bf4b96f1a7a961bc
10 years ago
Victor Seva
7a52fc6ad5
MT#12025 clean luacheck error
...
Change-Id: I247be4018189e393c1a8d7ee9fa7b455cc38f1a7
10 years ago
Victor Seva
555326aa09
MT#10199 remove defaults from profile. Fix empty results on profile load
11 years ago
Victor Seva
6c341f966a
MT#10199 add table.merge function
11 years ago
Victor Seva
3a60d1b574
MT#8243 add NGCPDlgCounters class.
...
TODO: tests doesn't play nice with redis mocks. Not activated.
11 years ago
Victor Seva
20222e73cc
MT#7679 fix table.shift()
11 years ago
Victor Seva
c4ab43e6b1
MT#7679 utils: add table.shift()
11 years ago
Victor Seva
65dba89ade
MT#7679 avp: allow tables values in set. utils: add table.suffle() function.
11 years ago
Victor Seva
c760b36d32
utils: add get/set methods. Can be called with [].
12 years ago
Victor Seva
97e9453a69
Added copyright in all lua. Removed unused script.
12 years ago
Victor Seva
f4b5526d2c
Added table.add for insert non duplicate elements in a list
13 years ago
Victor Seva
8bdb517d84
Add __tostring to Stack
13 years ago
Victor Seva
5daf6d3aeb
move utils to ngcp dir
13 years ago