mirror of
https://github.com/manyfold3d/manyfold.git
synced 2026-10-22 11:42:19 -05:00
8 lines
182 B
Ruby
8 lines
182 B
Ruby
module TrimPathSeparators
|
|
TRIM_PATH_SEPARATOR_REGEXP = /(^#{File::SEPARATOR})|(#{File::SEPARATOR}$)/
|
|
|
|
def trim_path_separators
|
|
gsub(TRIM_PATH_SEPARATOR_REGEXP, "")
|
|
end
|
|
end
|