mirror of
https://github.com/SukkaW/Surge.git
synced 2026-01-29 01:51:52 +08:00
Refactor: drop all Bun compatability
This commit is contained in:
@@ -2,7 +2,6 @@
|
||||
// (since it is hashes based). But the result is still deterministic, which is
|
||||
// enough when sorting.
|
||||
import * as tldts from 'tldts-experimental';
|
||||
import { sort } from './timsort';
|
||||
import { looseTldtsOpt } from '../constants/loose-tldts-opt';
|
||||
|
||||
export const compare = (a: string, b: string) => {
|
||||
@@ -58,5 +57,5 @@ export const sortDomains = (
|
||||
return t;
|
||||
};
|
||||
|
||||
return sort(inputs, sorter);
|
||||
return inputs.sort(sorter);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user