Skip to content

Commit

Permalink
Update getExtension
Browse files Browse the repository at this point in the history
- fixing the issue #268
  • Loading branch information
shishiousan committed Dec 22, 2023
1 parent b066958 commit aab8551
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/submodules/Utility/src/[email protected]
Original file line number Diff line number Diff line change
Expand Up @@ -346,8 +346,12 @@
INTEGER(I4B) :: n, m
n = 0
n = INDEX(char, ".", back=.TRUE.)
m = LEN(char)
ext = CHAR(n + 1:m)
IF (n .EQ. 0) THEN
ext = ""
ELSE
m = LEN(char)
ext = CHAR(n + 1:m)
END IF
END PROCEDURE getExtension_chars

!----------------------------------------------------------------------------
Expand Down

0 comments on commit aab8551

Please sign in to comment.