UNPKG

750 BJavaScriptView Raw
1"use strict";
2Object.defineProperty(exports, "__esModule", { value: true });
3exports.isPathCommand = void 0;
4/**
5 * Checks if the character is a path command.
6 */
7function isPathCommand(code) {
8 // eslint-disable-next-line no-bitwise -- Impossible to satisfy
9 switch (code | 0x20) {
10 case 0x6d /* m */:
11 case 0x7a /* z */:
12 case 0x6c /* l */:
13 case 0x68 /* h */:
14 case 0x76 /* v */:
15 case 0x63 /* c */:
16 case 0x73 /* s */:
17 case 0x71 /* q */:
18 case 0x74 /* t */:
19 case 0x61 /* a */:
20 // case 0x72/* r */:
21 return true;
22 default:
23 return false;
24 }
25}
26exports.isPathCommand = isPathCommand;
27//# sourceMappingURL=is-path-command.js.map
\No newline at end of file