(str)
| 14281 | return str.replace(/\`/g, "\\`").replace(/\$\{/g, "\\${") |
| 14282 | } |
| 14283 | static ucfirst(str) { |
| 14284 | return str.charAt(0).toUpperCase() + str.slice(1) |
| 14285 | } |
| 14286 | // Adapted from: https://github.com/dcporter/didyoumean.js/blob/master/didYouMean-1.2.1.js |
| 14287 | static didYouMean(str = "", options = [], caseSensitive = false, threshold = 0.4, thresholdAbsolute = 20) { |
| 14288 | if (!caseSensitive) str = str.toLowerCase() |