Skip to content

Commit 86eea3f

Browse files
committed
test: trim leading non-alpha from test name
1 parent 86dd3df commit 86eea3f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stackslib/src/net/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2415,7 +2415,7 @@ pub mod test {
24152415
.saturating_sub(CONTRACT_MAX_NAME_LENGTH),
24162416
)
24172417
.collect::<String>()
2418-
.trim_start_matches('-') // Remove leading '-'
2418+
.trim_start_matches(|c: char| !c.is_alphabetic())
24192419
.to_string(),
24202420
)
24212421
.expect("FATAL: invalid boot-code contract name"),

0 commit comments

Comments
 (0)