mirror of
https://github.com/coderaiser/cloudcmd.git
synced 2026-08-04 05:33:10 +00:00
feature: server: columns: get rid of mock-require
This commit is contained in:
parent
46c8accd84
commit
98d3a4cc56
41 changed files with 233 additions and 215 deletions
|
|
@ -1,6 +1,6 @@
|
|||
'use strict';
|
||||
|
||||
const {extname} = require('path');
|
||||
const {extname} = require('node:path');
|
||||
const currify = require('currify');
|
||||
const testRegExp = currify((name, reg) => reg.test(name));
|
||||
const getRegExp = (ext) => RegExp(`\\.${ext}$`, 'i');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue