Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Little exactness tweaks #1874

Merged
merged 2 commits into from
Jun 9, 2022
Merged

Little exactness tweaks #1874

merged 2 commits into from
Jun 9, 2022

Conversation

jonjensen
Copy link
Contributor

Sanity check:

  • Have you checked to ensure there aren't other open Pull Requests for the same update/change?

Code changes

(Delete or ignore this section for documentation changes)

  • Are you doing the PR on the next branch?

If the change is a new feature or adding to/changing an existing one:

  • [N/A] Have you created/updated the relevant documentation page(s)?

jonjensen added 2 commits May 23, 2022 17:15
\\ is only for the beginning of UNC paths, e.g.
\\host-name\share-name\file-path
as per
https://docs.microsoft.com/en-us/windows/win32/fileio/naming-a-file
In the shell, spaces are significant in a path with brace expansion, and
break it. (As opposed to in Rust module brace expansion.)
@@ -419,7 +419,7 @@ pub fn serve(
broadcaster
};

println!("Listening for changes in {}{{{}}}", root_dir.display(), watchers.join(", "));
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why? It's not an actual regex but the space is there to make it easier to read

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's written like a shell brace-expansion (not a regex) and I copied and pasted it to a shell command (ls, if I remember right) to look at the timestamps on those files, and it didn't work because the spaces end up being wrong extra characters in the filesystem paths.

For someone just looking at it the extra space doesn't matter, but in that case, could leave off the {} so it isn't taken literally.

@Keats Keats merged commit da799ea into getzola:master Jun 9, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants