| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0692b4f commit 09b5396
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -23,6 +23,8 @@ const END_BEGINNING_WHITESPACE = /[^\r\n\t ]|$/; | |||
| 23 | 23 | const START_ENDING_WHITESPACE = /[\r\n\t ]*$/; | |
| 24 | 24 | ||
| 25 | 25 | function toASCIILower(str) { | |
| 26 | + // eslint-disable-next-line no-control-regex | ||
| 27 | + if (!/[^\x00-\x7f]/.test(str)) return StringPrototypeToLowerCase(str); | ||
| 26 | 28 | let result = ''; | |
| 27 | 29 | for (let i = 0; i < str.length; i++) { | |
| 28 | 30 | const char = str[i]; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments