Skip to content

Commit bf94fd9

Browse files
committed
ci: fix darklua unicode replacements
1 parent 2fa672e commit bf94fd9

2 files changed

Lines changed: 17 additions & 1 deletion

File tree

modules/obbywiki.com/ObbyGameInfobox/ObbyGameInfobox.module.luau

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
-- inspired by scw
2-
-- 7
32

43
local ObbyGameInfobox = {}
54

scripts/compat/unicode.js

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
const fs = require('fs');
2+
const file_path = process.argv[2];
3+
4+
if (!file_path) process.exit(1);
5+
6+
function fix_unicode_syntax(input) {
7+
let fixed;
8+
9+
fixed = input.replace(/\\u\{2014\}/g, '—');
10+
11+
return fixed;
12+
}
13+
14+
const input = fs.readFileSync(file_path, 'utf8');
15+
const output = fix_unicode_syntax(input);
16+
17+
fs.writeFileSync(file_path, output);

0 commit comments

Comments
 (0)