Skip to content

Commit

Permalink
fixing string:substring built-in
Browse files Browse the repository at this point in the history
  • Loading branch information
josd committed Sep 4, 2024
1 parent d2c61d6 commit c1d6b68
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
1 change: 1 addition & 0 deletions RELEASE
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
EYE release

v10.20.4 (2024-09-04) fixing string:substring built-in
v10.20.3 (2024-09-04) further fixing issue https://github.com/eyereasoner/eye/issues/108
v10.20.2 (2024-09-04) further fixing issue https://github.com/eyereasoner/eye/issues/115
v10.20.1 (2024-09-03) fixing log:callWithCut built-in
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
10.20.3
10.20.4
12 changes: 6 additions & 6 deletions eye.pl
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
:- catch(use_module(library(process)), _, true).
:- catch(use_module(library(http/http_open)), _, true).

version_info('EYE v10.20.3 (2024-09-04)').
version_info('EYE v10.20.4 (2024-09-04)').

license_info('MIT License

Expand Down Expand Up @@ -8767,7 +8767,8 @@
( ground([A, B])
),
( getint(B, I),
sub_atom(A, 0, E, 0, _),
escape_atom(A, Ae),
sub_atom(Ae, 0, E, 0, _),
J is E-I+1,
( I < 1
-> G is 0,
Expand All @@ -8776,9 +8777,8 @@
H is J
),
( H < 0
-> D = []
; escape_atom(A, Ae),
escape_atom(D, De),
-> D = ''
; escape_atom(D, De),
sub_atom(Ae, G, H, _, De)
)
)
Expand Down Expand Up @@ -9186,7 +9186,7 @@
H is J
),
( H < 0
-> D = []
-> D = ''
; sub_atom(A, G, H, _, D)
)
)
Expand Down
Binary file modified eye.zip
Binary file not shown.

0 comments on commit c1d6b68

Please sign in to comment.