Skip to content

Commit d121f36

Browse files
committed
Avoid splitting strings too many
1 parent b7f307b commit d121f36

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

fenjing/rules/string.py

-7
Original file line numberDiff line numberDiff line change
@@ -524,13 +524,6 @@ def gen_string_splitbyabc(context: dict, value: str):
524524
]
525525

526526

527-
@expression_gen
528-
def gen_string_splitbylength(context: dict, value: str):
529-
if len(value) < 16:
530-
return [(UNSATISFIED,)]
531-
return [(STRING_CONCAT, (STRING, value[:8]), (STRING, value[8:]))]
532-
533-
534527
@expression_gen
535528
def gen_string_lipsumtobytes4(context: dict, value: str):
536529
ints: List[Target] = join_target(

0 commit comments

Comments
 (0)