-
-
Notifications
You must be signed in to change notification settings - Fork 5.7k
Commit 041918d
authored
merge: Upgrade Lower function (#894)
* docs: update the js doc
* pref: Optimize algo via regex
ignore the useless traverse in best case via regex and String.prototype.replace
* test: add some new test cases
* fix: styled with standard
* refactor: remove useless variable1 parent 29a3ab7 commit 041918d
2 files changed
+21
-16
lines changedLines changed: 7 additions & 12 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | 3 |
| |
4 | - | ||
5 | - | ||
4 | + | ||
5 | + | ||
6 | 6 |
| |
7 | 7 |
| |
8 | 8 |
| |
| |||
12 | 12 |
| |
13 | 13 |
| |
14 | 14 |
| |
15 | - | ||
15 | + | ||
16 | + | ||
17 | + | ||
16 | 18 |
| |
17 | - | ||
18 | - | ||
19 | - | ||
20 | - | ||
21 | - | ||
22 | - | ||
23 | - | ||
24 | - | ||
25 | - | ||
19 | + | ||
20 | + | ||
26 | 21 |
| |
27 | 22 |
| |
28 | 23 |
|
Lines changed: 14 additions & 4 deletions
Original file line number | Diff line number | Diff line change | |
---|---|---|---|
| |||
1 | 1 |
| |
2 | 2 |
| |
3 | - | ||
4 | - | ||
5 | - | ||
3 | + | ||
4 | + | ||
5 | + | ||
6 | + | ||
7 | + | ||
8 | + | ||
9 | + | ||
10 | + | ||
6 | 11 |
| |
7 | - | ||
12 | + | ||
13 | + | ||
14 | + | ||
15 | + | ||
16 | + | ||
17 | + | ||
8 | 18 |
| |
9 | 19 |
|
0 commit comments