Pattern for array
未關閉
enhancement
question
- 主要語言
- CoffeeScript
- 星號
- 518
- 分支
- 70
- PR 合併指標
- 30 天內沒有已合併 PR
描述
I'm using a library that defines RGB colors in arrays: `"rgba(100, 160, 200, 0.5)"` becomes simply `[100, 160, 200, 0.5]`.
Using arrays or lists is a common and flexible way to work with colors.
Is it possible to define new patterns using regex that can be changed in the settings?
Thank you.
貢獻指南
研究方向
查看 package 設定中如何定義模式,可能位於 lib/pigments.coffee 或設定 schema 中。找到顏色格式的 regex 模式在哪裡被解析和套用。目標是新增一個模式,使其符合類似 [100, 160, 200, 0.5] 的陣列語法,並將其映射為 RGBA 值。透過修改一個模式並驗證範例檔案中的顏色是否反白來進行測試。
由索引模型根據 Issue 內容生成。
評估
- 技術堆疊
- coffeescript
- 領域
- tooling
- Issue 類型
- 功能
- 難度
- 3/5
- 預估耗時
- 1-2 天
- 活躍度
- 停滯
- 描述清晰度
- 基本清楚
- 新手友好度
- 45/100