From 68abb9d73c529eeb32ce88a937416baafe8e1fd1 Mon Sep 17 00:00:00 2001 From: kn1cht <16277200+kn1cht@users.noreply.github.com> Date: Sat, 10 Feb 2024 00:47:55 +0900 Subject: [PATCH] add words to allowWordManyChar --- src/use-si-units.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/use-si-units.js b/src/use-si-units.js index cd6136a..12a51b4 100644 --- a/src/use-si-units.js +++ b/src/use-si-units.js @@ -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');