Skip to content

Commit

Permalink
Different heuristic
Browse files Browse the repository at this point in the history
  • Loading branch information
CEisenhofer committed Jan 21, 2025
1 parent 791ad83 commit 4887372
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ast/sls/sls_seq_plugin.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -687,7 +687,7 @@ namespace sls {
else if (m_str_update_strategy == EDIT_SUBSTR)
add_substr_edit_updates(w, val, val_other, chars);
else {
if (diff < 3)
if (val.length() / 3 >= diff - 1)
add_char_edit_updates(w, val, val_other, chars);
else
add_substr_edit_updates(w, val, val_other, chars);
Expand Down

0 comments on commit 4887372

Please sign in to comment.