diff options
| author | Bobby <[email protected]> | 2025-07-13 01:14:31 +0530 |
|---|---|---|
| committer | Bobby <[email protected]> | 2025-07-13 01:14:31 +0530 |
| commit | a698f5fde54c96f017a5af600c1e54a20cf051e6 (patch) | |
| tree | 243e5c9da0198c862997bad3eb51af17f3d429aa /static/scripts | |
| parent | c97589bd1ae1d2366c4fb070264d26c8b8d8b7c5 (diff) | |
| download | imageboard-a698f5fde54c96f017a5af600c1e54a20cf051e6.tar.xz imageboard-a698f5fde54c96f017a5af600c1e54a20cf051e6.zip | |
fix % in css fields
Diffstat (limited to 'static/scripts')
| -rw-r--r-- | static/scripts/preferences.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/static/scripts/preferences.js b/static/scripts/preferences.js index d02e5cc..61db579 100644 --- a/static/scripts/preferences.js +++ b/static/scripts/preferences.js @@ -1,5 +1,5 @@ function validateCSSFieldValue(value) { - const validCSSValuePattern = /^(auto|(\d+(\.\d+)?px|em|rem|%)|calc\(.+\))$/; + const validCSSValuePattern = /^(auto|(\d+(\.\d+)?(px|em|rem|%)?)|calc\(.+\))$/; return validCSSValuePattern.test(value); } |
