mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-12-17 19:55:44 +01:00
2734: Fix regex to enable alpha transparency hex codes (8 digits)
This commit is contained in:
parent
07fe3c1906
commit
2942ca500b
@ -28,7 +28,7 @@ export function NetscriptUserInterface(
|
||||
|
||||
setTheme: function (newTheme: UserInterfaceTheme): void {
|
||||
helper.updateDynamicRam("setTheme", getRamCost(player, "ui", "setTheme"));
|
||||
const hex = /^(#)((?:[A-Fa-f0-9]{3}){1,2})$/;
|
||||
const hex = /^(#)((?:[A-Fa-f0-9]{2}){3,4}|(?:[A-Fa-f0-9]{3}))$/;
|
||||
const currentTheme = {...Settings.theme}
|
||||
const errors: string[] = [];
|
||||
for (const key of Object.keys(newTheme)) {
|
||||
|
Loading…
Reference in New Issue
Block a user