Software zum Installieren eines Smart-Mirror Frameworks , zum Nutzen von hochschulrelevanten Informationen, auf einem Raspberry-Pi.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

regex.md 874B

1234567891011121314151617181920212223242526272829
  1. # Using regex in rules
  2. The following classes of rules support regex:
  3. - `*-allowed-list`
  4. - `*-disallowed-list`
  5. - `*-pattern`
  6. As does the `ignore*` secondary options.
  7. ## Enforce a case
  8. You can use the regex that corresponds to your chosen case convention:
  9. <!-- prettier-ignore -->
  10. - kebab-case: `^([a-z][a-z0-9]*)(-[a-z0-9]+)*$`
  11. - lowerCamelCase: `^[a-z][a-zA-Z0-9]+$`
  12. - snake\_case: `^([a-z][a-z0-9]*)(_[a-z0-9]+)*$`
  13. - UpperCamelCase: `^[A-Z][a-zA-Z0-9]+$`
  14. For example, for lowerCamelCase class selectors use `"selector-class-pattern": "^[a-z][a-zA-Z0-9]+$"`.
  15. All these patterns disallow CSS identifiers that start with a digit, two hyphens, or a hyphen followed by a digit.
  16. ## Enforce a prefix
  17. You can ensure a prefix by using a positive lookbehind regex.
  18. For example, to ensure all custom properties begin with `my-` use `"custom-property-pattern": "(?<=my-)"`.