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

Commit

Permalink
Updates Metadata script for compatibility with newer Javadocs.
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardocolombo committed Jan 11, 2022
1 parent 7e8fe34 commit 3130625
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
# returns the string between two given characters
def find_between(s, first, last):
try:
start = s.index(first) + len(first)
end = s.index(last, start)
start = s.rindex(first) + len(first)
end = s.rindex(last, start)
return s[start:end]
except ValueError:
return ""
Expand Down

0 comments on commit 3130625

Please sign in to comment.