Skip to content

Commit d555206

Browse files
Add note on handling of unknown escape sequences in WOD constant strings
1 parent c973b73 commit d555206

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ng-appserver/src/main/java/ng/appserver/NGAssociationFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private static String applyEscapes( String string ) {
122122
case 'n' -> sb.replace( i, i + 2, "\n" );
123123
case 'r' -> sb.replace( i, i + 2, "\r" );
124124
case 't' -> sb.replace( i, i + 2, "\t" );
125-
default -> sb.deleteCharAt( i ); // Remove the backslash if not followed by a known escape
125+
default -> sb.deleteCharAt( i ); // Remove the backslash if not followed by a known escape. FIXME: We probably want to throw an exception (or just keep in the backslash) if an unknown escape character is encountered // Hugi 2025-03-09
126126
}
127127
}
128128
}

0 commit comments

Comments
 (0)