Skip to content

Commit

Permalink
feat: Added webhook sample
Browse files Browse the repository at this point in the history
Refs: #30
  • Loading branch information
pbezliapovich committed Aug 9, 2024
1 parent 93b779c commit 676828a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/TableCellAutoHeightSetter.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
def process_html():
html_content = request.form.get('html')
if html_content:
pattern = r'(<t[dh].+?height:.*?)(\d+px)'
pattern = r'(<t[dh].+?height:.*?)(\d+(\.\d+)?px)'
html_content = re.sub(pattern, lambda m: m.group(1) + "auto", html_content)

response = Response(html_content, mimetype="text/html", status=200)
Expand Down

0 comments on commit 676828a

Please sign in to comment.