equal
deleted
inserted
replaced
27 error (msg + " path element specification: " + quote(s)) |
27 error (msg + " path element specification: " + quote(s)) |
28 |
28 |
29 private def check_elem(s: String): String = |
29 private def check_elem(s: String): String = |
30 if (s == "" || s == "~" || s == "~~") err_elem("Illegal", s) |
30 if (s == "" || s == "~" || s == "~~") err_elem("Illegal", s) |
31 else |
31 else |
32 s.iterator.filter(c => c == '/' || c == '\\' || c == '$' || c == ':').toList match { |
32 s.iterator.filter(c => |
|
33 c == '/' || c == '\\' || c == '$' || c == ':' || c == '"' || c == '\'').toList match { |
33 case Nil => s |
34 case Nil => s |
34 case bads => |
35 case bads => |
35 err_elem ("Illegal character(s) " + commas_quote(bads.map(_.toString)) + " in", s) |
36 err_elem ("Illegal character(s) " + commas_quote(bads.map(_.toString)) + " in", s) |
36 } |
37 } |
37 |
38 |