mirror of
https://github.com/ajayyy/SponsorBlockServer.git
synced 2025-12-06 11:36:58 +03:00
Merge pull request #445 from HaiDang666/substr-deprecated
remove deprecated method: String.substr
This commit is contained in:
@@ -40,7 +40,7 @@ async function init() {
|
||||
fs.readdirSync(testDir)
|
||||
.filter((file) =>
|
||||
// Only keep the .ts files
|
||||
file.substr(-3) === ".ts"
|
||||
file.slice(-3) === ".ts"
|
||||
)
|
||||
.forEach(function(file) {
|
||||
mocha.addFile(
|
||||
|
||||
Reference in New Issue
Block a user