-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add option to remove URL query params; add support for Universal Actions
- Also store default actions in main Python file instead of a its own JSON file
- Loading branch information
Showing
5 changed files
with
53 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
#!/usr/bin/python | ||
# encoding: utf-8 | ||
|
||
import os | ||
import re | ||
import sys | ||
|
||
result = sys.argv[1] | ||
raw_url = os.getenv('raw_url') | ||
clean_url = re.sub(r'\?.*', '', raw_url) | ||
sys.stdout.write(result.replace(raw_url, clean_url)) |