Skip to content

Commit 4d29bcc

Browse files
committed
reapply fix
1 parent 2c3e991 commit 4d29bcc

File tree

1 file changed

+1
-4
lines changed
  • rust/cubesql/cubesql/src/compile/engine/df

1 file changed

+1
-4
lines changed

rust/cubesql/cubesql/src/compile/engine/df/wrapper.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,10 +416,7 @@ impl Remapper {
416416
LazyLock::new(|| Regex::new(r"[^a-zA-Z0-9_]").unwrap());
417417

418418
let alias = start_from;
419-
let mut truncated_alias = NON_ID_REGEX
420-
.replace_all(&alias, "_")
421-
.trim_start_matches("_")
422-
.to_lowercase();
419+
let mut truncated_alias = NON_ID_REGEX.replace_all(&alias, "_").to_lowercase();
423420
truncated_alias.truncate(16);
424421
let mut alias = truncated_alias.clone();
425422
for i in 1..10000 {

0 commit comments

Comments
 (0)