source:
node_modules/es-toolkit/dist/compat/_internal/normalizeForCase.mjs
| Last change on this file was a762898, checked in by , 5 months ago | |
|---|---|
|
|
| File size: 227 bytes | |
| Line | |
|---|---|
| 1 | import { toString } from '../util/toString.mjs'; |
| 2 | |
| 3 | function normalizeForCase(str) { |
| 4 | if (typeof str !== 'string') { |
| 5 | str = toString(str); |
| 6 | } |
| 7 | return str.replace(/['\u2019]/g, ''); |
| 8 | } |
| 9 | |
| 10 | export { normalizeForCase }; |
Note:
See TracBrowser
for help on using the repository browser.
