Skip to content

Commit

Permalink
Update SFLB to 3.0.14
Browse files Browse the repository at this point in the history
* Fix AG conversion issues
  • Loading branch information
hawkeye116477 committed Feb 9, 2024
1 parent af877e1 commit a619b29
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 9 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/docker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
include:
- dfile: "SFLB"
imname: "sflb"
version: "3.0.13"
version: "3.0.14"
- dfile: "ED"
imname: "expired_domains"
version: "1"
Expand Down Expand Up @@ -77,10 +77,10 @@ jobs:
include:
- dfile: "KAD"
imname: "kad"
version: "3.0.13"
version: "3.0.14"
- dfile: "RTM"
imname: "rtm"
version: "3.0.13"
version: "3.0.14"
needs: docker_sflb_ed
steps:
- name: Check out the repo
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile_SFLB
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ FROM python:3-slim
# make Apt non-interactive
ENV DEBIAN_FRONTEND=noninteractive

ENV SFLB_tag="SFLB-3.0.13"
ENV SFLB_tag="SFLB-3.0.14"
ENV SFLB_LOCALES_PATH="/usr/share/locale"
ENV FOP_tag="FOP-3.32"

Expand Down
16 changes: 11 additions & 5 deletions scripts/SFLB.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
FOP = None

# Version number
SCRIPT_VERSION = "3.0.13"
SCRIPT_VERSION = "3.0.14"

# Parse arguments
parser = argparse.ArgumentParser()
Expand Down Expand Up @@ -534,11 +534,17 @@ def main(pathToFinalLists, forced, saveChangedFN):
if "##+js" in lineC:
funcArgs = lineC.split(
"##+js(")[1].strip().replace(')', '').split(", ")
for arg in funcArgs:
lineC = lineC.replace(
search_words = re.search(DOMAIN_PAT, lineC)
domain = search_words.group(1)
lineC = f"{domain}#%#//scriptlet("
for i, arg in enumerate(funcArgs):
arg = arg.replace(
arg, f"'{arg}'", 1)
lineC = lineC.replace(
"##+js", "#%#//scriptlet")
if i == len(funcArgs) - 1:
lineC += f"{arg})"
else:
lineC += f"{arg}, "
lineC += "\n"
elif ":remove-attr" or ":remove-class" or "##^" in lineC:
search_words = re.search(
DOMAIN_PAT, lineC)
Expand Down

0 comments on commit a619b29

Please sign in to comment.