Update addons
This commit is contained in:
3 files changed
+3
-3
No files matched your search
@@ -72,7 +72,7 @@ export default async ({ addon, console, msg }) => {
|
||||
const saColorPickerText = Object.assign(document.createElement("input"), {
|
||||
className: `sa-color-picker-text sa-color-picker-paint-text ${inputClass}`,
|
||||
type: "text",
|
||||
pattern: "^#?([0-9a-fA-F]{3}){1,2}$",
|
||||
pattern: "^#[0-9a-fA-F]{3,8}$",
|
||||
placeholder: msg("hex"),
|
||||
value: defaultColor || "",
|
||||
});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
export const getHexRegex = () => /^#?([0-9a-fA-F]{3}){1,2}$/g;
|
||||
export const getHexRegex = () => /^#[0-9a-fA-F]{3,8}$/;
|
||||
|
||||
export const normalizeHex = (input) => {
|
||||
let hex = String(input);
|
||||
|
||||
@@ -1 +1 @@
|
||||
{"version":"1.12.1","commit":"448768b","languages":["ar","de","en","es","fr","id","it","ja","nl","pl","pt-br","ro","ru","sl","th","tr"]}
|
||||
{"version":"1.12.1","commit":"0faef25","languages":["ar","de","en","es","fr","id","it","ja","nl","pl","pt-br","ro","ru","sl","th","tr"]}
|
||||
Reference in new issue
Block a user