Skip to content

Commit 97961cd

Browse files
authored
Fix navigate to file on Windows (#887)
1 parent 9f0363b commit 97961cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

crates/ark/src/modules/positron/frontend-methods.R

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@
3838
line = 0L,
3939
column = 0L
4040
) {
41-
# Don't normalize if there's a scheme, e.g. an `ark:` URI
42-
if (!grepl("^[a-zA-Z][a-zA-Z0-9+.-]*:", file)) {
41+
# Don't normalize if that's an `ark:` URI
42+
if (!grepl("^ark:", file)) {
4343
file <- normalizePath(file)
4444
}
4545

0 commit comments

Comments
 (0)