core :: String :: strip_start_slashes
String
copy of self
without any of the prefixed '/'sExamples:
assert "/home/".strip_start_slashes == "home/"
assert "////home/".strip_start_slashes == "home/"
assert "../home/".strip_start_slashes == "../home/"
# Returns a `String` copy of `self` without any of the prefixed '/'s
#
# Examples:
#
# assert "/home/".strip_start_slashes == "home/"
# assert "////home/".strip_start_slashes == "home/"
# assert "../home/".strip_start_slashes == "../home/"
fun strip_start_slashes: String
do
for i in chars.length.times do if chars[i] != '/' then return substring_from(i)
return ""
end
lib/nitcorn/file_server.nit:27,2--38,4