Commit d24926a
committed
Replace re2 with RegExp in timeline and add unit tests
Remove re2 usage and replace it with JavaScript built-in
RegExp object. Also add more unit tests to make sure that
using RegExp has same expressions as using re2 library.
Issue Resolve
#3901
Signed-off-by: Anan Zhuang <ananzh@amazon.com>1 parent 86d42bc commit d24926a
File tree
4 files changed
+42
-9
lines changed- src/plugins/vis_type_timeline/server/series_functions
4 files changed
+42
-9
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| 241 | + | |
241 | 242 | | |
242 | 243 | | |
243 | 244 | | |
| |||
Lines changed: 2 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
65 | | - | |
66 | | - | |
67 | | - | |
68 | | - | |
| 65 | + | |
| 66 | + | |
69 | 67 | | |
70 | 68 | | |
71 | 69 | | |
| |||
Lines changed: 20 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
54 | 74 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
4155 | 4155 | | |
4156 | 4156 | | |
4157 | 4157 | | |
4158 | | - | |
| 4158 | + | |
| 4159 | + | |
| 4160 | + | |
| 4161 | + | |
| 4162 | + | |
| 4163 | + | |
| 4164 | + | |
| 4165 | + | |
| 4166 | + | |
| 4167 | + | |
4159 | 4168 | | |
4160 | 4169 | | |
4161 | 4170 | | |
| |||
6889 | 6898 | | |
6890 | 6899 | | |
6891 | 6900 | | |
6892 | | - | |
| 6901 | + | |
6893 | 6902 | | |
6894 | 6903 | | |
6895 | 6904 | | |
| |||
6905 | 6914 | | |
6906 | 6915 | | |
6907 | 6916 | | |
| 6917 | + | |
| 6918 | + | |
| 6919 | + | |
| 6920 | + | |
| 6921 | + | |
6908 | 6922 | | |
6909 | 6923 | | |
6910 | 6924 | | |
| |||
9980 | 9994 | | |
9981 | 9995 | | |
9982 | 9996 | | |
9983 | | - | |
9984 | | - | |
9985 | | - | |
| 9997 | + | |
| 9998 | + | |
| 9999 | + | |
9986 | 10000 | | |
9987 | 10001 | | |
9988 | 10002 | | |
| |||
0 commit comments