Skip to content

Commit c035c23

Browse files
piz-ewingewing
andauthored
fix: normalize_chunk_name handles Windows paths with drive letter (#623)
Co-authored-by: ewing <[email protected]>
1 parent cb153a5 commit c035c23

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/luau/require.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ impl TextRequirer {
129129
}
130130

131131
fn normalize_chunk_name(chunk_name: &str) -> &str {
132-
if let Some((path, line)) = chunk_name.split_once(':') {
132+
if let Some((path, line)) = chunk_name.rsplit_once(':') {
133133
if line.parse::<u32>().is_ok() {
134134
return path;
135135
}

0 commit comments

Comments
 (0)