Skip to content
This repository was archived by the owner on Aug 30, 2024. It is now read-only.

Commit 8c01f96

Browse files
use custom replaceAll function instead of JS/Java method to make it work in native image
1 parent 6973bf8 commit 8c01f96

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

settings/sql_developer/trivadis_custom_format.arbori

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -915,7 +915,7 @@ a1_replace_tabs_with_spaces:
915915
var key = keys[i];
916916
var value = newlinePositions.get(key);
917917
if (value.indexOf("\t") != -1) {
918-
struct.putNewline(key, value.replaceAll("\t", indent));
918+
struct.putNewline(key, replaceAll(value, "\t", indent));
919919
logger.fine(struct.getClass(), "a1_replace_tabs_with_spaces: at " + key + ".");
920920
}
921921
}
@@ -4056,7 +4056,7 @@ a18_indent_comment:
40564056
substitutions.put(tokens[firstWS].begin, tokens[pos].begin, content);
40574057
logger.fine(struct.getClass(), "a18_indent_comment: at " + parserPos + ".");
40584058
if (tokens[pos].type == Token.COMMENT) {
4059-
var newComment = tokens[pos].content.replaceAll(
4059+
var newComment = replaceAll(tokens[pos].content,
40604060
oldIndent.substring(oldIndent.lastIndexOf("\n")),
40614061
newIndent.substring(newIndent.lastIndexOf("\n")));
40624062
substitutions.put(tokens[pos].begin, tokens[pos].end, newComment);

0 commit comments

Comments
 (0)