File tree Expand file tree Collapse file tree 2 files changed +2
-0
lines changed
main/java/org/byteskript/skript/lang/syntax/literal Expand file tree Collapse file tree 2 files changed +2
-0
lines changed Original file line number Diff line number Diff line change @@ -79,6 +79,7 @@ else if (escape) {
7979
8080 @ Override
8181 public Pattern .Match match (String thing , Context context ) {
82+ if (thing .length () < 2 ) return null ;
8283 if (thing .charAt (0 ) != '"' ) return null ;
8384 if (thing .charAt (thing .length () - 1 ) != '"' ) return null ;
8485 final String contents = thing .substring (1 , thing .length () - 1 );
Original file line number Diff line number Diff line change @@ -21,4 +21,5 @@ function basic:
2121 assert {d} is 4: "Multiplication failed."
2222 assert {e} is 2: "Square root (syntax) failed."
2323 assert "hello " + "there" is "hello there": "String joining failed."
24+ assert "Hello " + "<there!" is "Hello <there!": "String joining failed."
2425
You can’t perform that action at this time.
0 commit comments