mirror of
https://github.com/linuxserver/core.git
synced 2026-02-20 05:07:19 +08:00
handle broken colors in theme importer
This commit is contained in:
parent
7c55a315dd
commit
d13dc1fd3d
2
node_modules/ace/lib/ace/ext/modelist.js
generated
vendored
2
node_modules/ace/lib/ace/ext/modelist.js
generated
vendored
@ -137,7 +137,7 @@ var supportedModes = {
|
||||
Protobuf: ["proto"],
|
||||
Python: ["py"],
|
||||
R: ["r"],
|
||||
Razor: ["cshtml"],
|
||||
Razor: ["cshtml|asp"],
|
||||
RDoc: ["Rd"],
|
||||
RHTML: ["Rhtml"],
|
||||
RST: ["rst"],
|
||||
|
||||
2
node_modules/ace/tool/tmtheme.js
generated
vendored
2
node_modules/ace/tool/tmtheme.js
generated
vendored
@ -176,6 +176,8 @@ function luma(color) {
|
||||
}
|
||||
|
||||
function parseColor(color) {
|
||||
if (color[0] != "#" && color.match(/^[a-f\d]+$/i))
|
||||
color = "#" + color;
|
||||
if (color.length == 4)
|
||||
color = color.replace(/[a-fA-F\d]/g, "$&$&");
|
||||
if (color.length == 7)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user