Skip to content

Commit

Permalink
fix syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
montaguethomas committed Jun 14, 2024
1 parent 58f4ed6 commit 8b8ee9f
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,9 +21,7 @@
API_TOKEN_REGEX = r'.*(?:\"?api_token\"?):\s*\"([^"]+)\".*'
API_TOKEN_PATTERN = re.compile(API_TOKEN_REGEX)

JAVASCRIPT_MATCH_TOKEN = '''
javascript:prompt("Your emoji API Token is:", document.documentElement.innerHTML.match('.*(?:\"?api_token\"?):\s*\"([^"]+)\".*')[1])
'''
JAVASCRIPT_MATCH_TOKEN = """javascript:prompt("Your emoji API Token is:", document.documentElement.innerHTML.match('.*(?:\"?api_token\"?):\s*\"([^"]+)\".*')[1])"""


class ParseError(Exception):
Expand Down

0 comments on commit 8b8ee9f

Please sign in to comment.