Skip to content

Commit

Permalink
Extended icon validator by adding support for tic keyword.
Browse files Browse the repository at this point in the history
  • Loading branch information
petersirka committed May 6, 2024
1 parent 123234d commit cdb5855
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 2 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
0.0.97
========================

- extended icon validator by adding support for `tic` keyword

========================
0.0.96
========================
Expand Down
2 changes: 1 addition & 1 deletion jsonschema.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ require('./index');

const REG_NUMBER = /[\d,.]+/;
const REG_COLOR = /^#([A-F0-9]{3}|[A-F0-9]{6}|[A-F0-9]{8})$/i;
const REG_ICON = /^(ti|far|fab|fad|fal|fas|fa)?\s(fa|ti)-[a-z0-9-]+$/;
const REG_ICON = /^(ti|tic|far|fab|fad|fal|fas|fa)?\s(fa|ti)-[a-z0-9-]+$/;

function check_string(meta, error, value, errplus, path) {

Expand Down

0 comments on commit cdb5855

Please sign in to comment.