Skip to content

Commit a3d4405

Browse files
marshal09zimmerle
authored andcommitted
Add new transformation call phpArgsNames
1 parent d03f4c1 commit a3d4405

File tree

1 file changed

+93
-0
lines changed

1 file changed

+93
-0
lines changed

transformations/phpArgsNames.json

+93
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
[
2+
{
3+
"input" : "abc",
4+
"name" : "phpArgsNames",
5+
"type" : "tfn",
6+
"ret" : 0,
7+
"output" : "abc"
8+
},
9+
{
10+
"input" : "a_bc",
11+
"name" : "phpArgsNames",
12+
"type" : "tfn",
13+
"ret" : 0,
14+
"output" : "a_bc"
15+
},
16+
{
17+
"input" : "a_b.c",
18+
"name" : "phpArgsNames",
19+
"type" : "tfn",
20+
"ret" : 1,
21+
"output" : "a_b_c"
22+
},
23+
{
24+
"input" : "a[_b c.",
25+
"name" : "phpArgsNames",
26+
"type" : "tfn",
27+
"ret" : 1,
28+
"output" : "a__b c."
29+
},
30+
{
31+
"input" : ". a_b]c",
32+
"name" : "phpArgsNames",
33+
"type" : "tfn",
34+
"ret" : 1,
35+
"output" : "__a_b]c"
36+
},
37+
{
38+
"input" : "a_b c d_",
39+
"name" : "phpArgsNames",
40+
"type" : "tfn",
41+
"ret" : 1,
42+
"output" : "a_b_c_d_"
43+
},
44+
{
45+
"input" : "[a_[b][]c d_",
46+
"name" : "phpArgsNames",
47+
"type" : "tfn",
48+
"ret" : 1,
49+
"output" : ""
50+
},
51+
{
52+
"input" : "a_[b][ ]c d_",
53+
"name" : "phpArgsNames",
54+
"type" : "tfn",
55+
"ret" : 1,
56+
"output" : "a_[b][]"
57+
},
58+
{
59+
"input" : "][ ",
60+
"name" : "phpArgsNames",
61+
"type" : "tfn",
62+
"ret" : 1,
63+
"output" : "]_ "
64+
},
65+
{
66+
"input" : "][ a.",
67+
"name" : "phpArgsNames",
68+
"type" : "tfn",
69+
"ret" : 1,
70+
"output" : "]_ a."
71+
},
72+
{
73+
"input" : " ] [a][c][f. _ ]",
74+
"name" : "phpArgsNames",
75+
"type" : "tfn",
76+
"ret" : 1,
77+
"output" : "]_[a][c][f. _ ]"
78+
},
79+
{
80+
"input" : "a[]b",
81+
"name" : "phpArgsNames",
82+
"type" : "tfn",
83+
"ret" : 1,
84+
"output" : "a[]"
85+
},
86+
{
87+
"input" : "sc ript._[a[_xss]",
88+
"name" : "phpArgsNames",
89+
"type" : "tfn",
90+
"ret" : 1,
91+
"output" : "sc_ript__[a[_xss]"
92+
}
93+
]

0 commit comments

Comments
 (0)