mirror of
https://github.com/zhigang1992/synx.git
synced 2026-01-12 22:52:53 +08:00
Merge pull request #22 from mplewis/master
Fix regex escaping causing sync issues on paths with special characters
This commit is contained in:
@@ -87,7 +87,7 @@ module Synx
|
||||
end
|
||||
|
||||
def pathname_is_inside_root_pathname?(grandchild_pathname)
|
||||
grandchild_pathname.realpath.to_s =~ /^#{root_pathname.realpath.to_s}/
|
||||
grandchild_pathname.realpath.to_s.start_with?(root_pathname.realpath.to_s)
|
||||
end
|
||||
|
||||
def group_exclusions=(new_exclusions)
|
||||
|
||||
Reference in New Issue
Block a user