Skip to content

Commit

Permalink
css: optimize regexp compilation
Browse files Browse the repository at this point in the history
 - Perform regexp compilation only once by moving all regular
   expressions into global variables.
 - Update regexps to be written as `^...$` with `MatchString()` instead
   of using the `Longest()` with
   `FindString(value) == value && value != ""`.
  • Loading branch information
hochhaus committed Apr 20, 2022
1 parent bdb77cf commit 894b9a8
Showing 1 changed file with 99 additions and 170 deletions.

0 comments on commit 894b9a8

Please sign in to comment.