|
@@ -32,7 +32,7 @@ public final class StringExpansion {
|
32
|
32
|
public static Result<String, String> unescape(String self) {
|
33
|
33
|
if (!(self.charAt(0) == self.charAt(self.length() - 1)))
|
34
|
34
|
throw new AssertionError("Unbalanced quotes");
|
35
|
|
- if (!(self.charAt(0) == '@' && ArrayHelpers.contains(new char[] {'"', '\''}, self.charAt(1)) || ArrayHelpers.contains(new char[] {'"', '\''}, self.charAt(0))))
|
|
35
|
+ if (!(self.charAt(0) == '@' && ArrayHelpers.containsChar(new char[] {'"', '\''}, self.charAt(1)) || ArrayHelpers.containsChar(new char[] {'"', '\''}, self.charAt(0))))
|
36
|
36
|
throw new AssertionError("String is not quoted");
|
37
|
37
|
if (!(self.length() >= 2))
|
38
|
38
|
throw new AssertionError("String is not quoted");
|