Skip to content

Commit

Permalink
Merge pull request #8 from jamasoftware-ps/linkFixerAdjustments
Browse files Browse the repository at this point in the history
Replaced $ with ; on targetName for more accurate logging
  • Loading branch information
nmchale-jama authored Aug 25, 2023
2 parents 741aa38 + 8abb027 commit 88669a4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions link_fixer.py
Original file line number Diff line number Diff line change
Expand Up @@ -398,6 +398,7 @@ def log_locked_items(item_name, locked_by, url):
if get_text_mode():
sourceName = hyperlink_string[hyperlink_string.index('>') + 1:hyperlink_string.index('</a>')]
targetName = get_item_field(target_item['id'], get_display_attribute())
targetName = targetName.replace('&', '&amp;') #Encode ampersand as $amp; to match sourceName

if sourceName == targetName:
logger.info("valid link detected. skipping.")
Expand Down

0 comments on commit 88669a4

Please sign in to comment.