Skip to content

Commit

Permalink
Add color to oldsitego
Browse files Browse the repository at this point in the history
  • Loading branch information
cirion02 committed Jan 14, 2024
1 parent d44653e commit ce4d9c7
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pre-commit.example
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@

import execjs
import sys
import re

with open(".git/hooks/pre-commit", 'r') as file:
this_file = file.read()
Expand All @@ -14,7 +15,7 @@ with open("pre-commit.example", 'w') as file:
with open("variant-list.js", 'r', encoding='utf-8') as file:
data = file.read()

ctx = execjs.compile(data)
ctx = execjs.compile(re.sub(r'[^\x00-\x7F]', '?', data))

data = ctx.eval("variant_list_data")

Expand Down
1 change: 1 addition & 0 deletions variant-list.js
Original file line number Diff line number Diff line change
Expand Up @@ -1000,6 +1000,7 @@ let variant_list_data = [
name: "Oldsitego",
credit: "ad",
description: "A variant of lockout (or blackout) in which all the objectives are Old Site related",
color: "Green",
external_links: [{
name:"Generator",
file:"download-files/oldsitego.json"
Expand Down

0 comments on commit ce4d9c7

Please sign in to comment.