Skip to content

Commit c0a4de4

Browse files
committed
minor changes
1 parent f8d6739 commit c0a4de4

4 files changed

Lines changed: 18 additions & 24 deletions

File tree

.darklua.json5

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"generator": {
33
"name": "dense",
4-
"column_span": 100
4+
"column_span": 140
55
},
66
"bundle": {
77
"require_mode": {
@@ -13,16 +13,16 @@
1313
"excludes": ["Module?*"]
1414
},
1515
"rules": [
16+
{
17+
"rule": "append_text_comment",
18+
"text": "This file was minified and transpiled by DarkLua. View the original source code in our shared code repository at https://github.com/obbywiki/modules, as well as any imports and disclosures. A copyright notice should be supplied at the bottom of this page."
19+
},
1620
"remove_comments",
1721
"remove_types",
1822
"remove_interpolated_string",
1923
"remove_compound_assignment",
2024
"remove_if_expression",
2125
"convert_luau_number",
2226
"remove_unused_variable",
23-
{
24-
"rule": "append_text_comment",
25-
"text": "This file was minified and transpiled by DarkLua. View the original source code in our shared code repository at https://github.com/obbywiki/modules, as well as any imports and disclosures. A copyright notice should be supplied at the bottom of this page."
26-
}
2727
]
2828
}

.github/workflows/wikiwire.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,12 +56,6 @@ jobs:
5656
- name: Fail if outputs were not committed
5757
run: git diff --exit-code
5858

59-
- name: WikiWire uploads Darklua .lua only (not Luau sources)
60-
shell: bash
61-
run: |
62-
touch .wikiwireignore
63-
grep -qxF '**/*.module.luau' .wikiwireignore || echo '**/*.module.luau' >> .wikiwireignore
64-
6559
- uses: obbywiki/wikiwire@4989b61661fdd188479c7f2283b9ddde25337efa
6660
env:
6761
GITHUB_TOKEN: ${{ secrets.WIKIWIRE_GITHUB_TOKEN }}

.wikiwireignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
modules/obbywiki.com/ObbyGameInfobox/ObbyGameInfoboxLegacy.lua
22
modules/obbywiki.com/ObbyGameInfobox/ObbyGameInfoboxLegacy.module.lua
3-
*.module.luau
3+
**/*.module.luau

modules/obbywiki.com/PlayerInfobox/PlayerInfobox.module.luau

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
-- inspired by scw
22

33
-- infobox should cover all use cases like developers, community, content creators, etc.
4-
-- 20
4+
-- 21
55

66
local PlayerInfobox = {}
77

@@ -127,19 +127,19 @@ function PlayerInfobox.main( frame )
127127
local player_roles = args.roles or args.known_for or 'player'
128128
-- player,developer,content-creator
129129

130-
-- player_roles = string.lower(player_roles)
130+
player_roles = string.lower(player_roles)
131131

132-
-- local roles = {}
132+
local roles = {}
133133

134-
-- for _, v in pairs(mw.text.split(player_roles, ',')) do
135-
-- if table.find({'player','developer','content-creator'}, v) then
136-
-- table.insert(roles, v)
137-
-- else
138-
-- if v == 'influencer' then
139-
-- table.insert(roles, 'content-creator')
140-
-- end
141-
-- end
142-
-- end
134+
for _, v in pairs(mw.text.split(player_roles, ',')) do
135+
if table.find({'player','developer','content-creator'}, v) then
136+
table.insert(roles, v)
137+
else
138+
if v == 'influencer' then
139+
table.insert(roles, 'content-creator')
140+
end
141+
end
142+
end
143143

144144
local player_creation_year, player_creation_month, player_creation_day
145145
local player_is_verified = false

0 commit comments

Comments
 (0)