Skip to content

Commit

Permalink
Fixed a small bug with strings in arrays
Browse files Browse the repository at this point in the history
  • Loading branch information
tabularelf committed Sep 8, 2023
1 parent b5f9e3c commit 27f8f78
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,14 @@ function __lexicon_definitions_parse_files(_definitionsFilePath, _fileStruct) {
if (is_array(_fileStruct)) {
var _i = 0;
repeat(array_length(_fileStruct)) {
if (string_char_at(_fileStruct[_i][$ "filePath"], 1) == ".") {
_fileStruct[_i][$ "filePath"] = _filePath + string_copy(_fileStruct[_i][$ "filePath"], 3, string_length(_fileStruct[_i][$ "filePath"]));
if (is_string(_fileStruct[_i])) {
if (string_char_at(_fileStruct[_i], 1) == ".") {
_fileStruct[_i] = _filePath + string_copy(_fileStruct[_i], 3, string_length(_fileStruct[_i]));
}
} else {
if (string_char_at(_fileStruct[_i][$ "filePath"], 1) == ".") {
_fileStruct[_i][$ "filePath"] = _filePath + string_copy(_fileStruct[_i][$ "filePath"], 3, string_length(_fileStruct[_i][$ "filePath"]));
}
}
++_i;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,7 @@ function lexicon_index_definitions(_filePath) {
}
}

_j = 0;
if (is_array(_files)) {
var _fileLen = array_length(_files);
repeat(_fileLen) {
Expand Down

0 comments on commit 27f8f78

Please sign in to comment.