Skip to content

Commit

Permalink
add words to allowWordManyChar
Browse files Browse the repository at this point in the history
  • Loading branch information
kn1cht committed Feb 9, 2024
1 parent 290f4d4 commit 68abb9d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/use-si-units.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const defaultOptions = {

const siUnitOneChar = P.oneOf('-msAKg');
const siUnitManyChar = P.regexp(/mol|cd/);
const allowWordManyChar = P.regexp(/and|or|nor|but|by|for|from|on|out|per|to/);
const allowWordManyChar = P.regexp(/and|or|nor|but|by|for|from|on|out|per|to|of|at|over|under|between|among|into|upon|within|around|plus|minus|times|divided/);
const siDerivedUnitOneChar = P.oneOf('JWCVFΩSTH℃');
const siDerivedUnitManyChar = P.regexp(/rad|sr|Hz|N|Pa|Wb|lm|lx|Bq|Gy|Sv|kat/);
const nonSiUnitOneChar = P.oneOf('hd°′″lLtB');
Expand Down

0 comments on commit 68abb9d

Please sign in to comment.