Skip to content

Commit

Permalink
chore: use commonJs syntax
Browse files Browse the repository at this point in the history
  • Loading branch information
Sai Sankeerth committed Sep 10, 2024
1 parent 77673c2 commit 144213e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions src/warehouse/snakecase/snakecase.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { toString } from 'lodash';
import { unicodeWords, unicodeWordsWithNumbers } from './unicodeWords';
const { toString } = require('lodash');
const { unicodeWords, unicodeWordsWithNumbers } = require('./unicodeWords');

const hasUnicodeWord = RegExp.prototype.test.bind(
/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,
Expand Down Expand Up @@ -34,4 +34,4 @@ const snakeCaseWithNumbers = (string) =>
'',
);

export { words, wordsWithNumbers, snakeCase, snakeCaseWithNumbers };
module.exports = { words, wordsWithNumbers, snakeCase, snakeCaseWithNumbers };
2 changes: 1 addition & 1 deletion src/warehouse/snakecase/unicodeWords.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,4 +91,4 @@ function unicodeWordsWithNumbers(string) {
return string.match(reUnicodeWordsWithNumbers);
}

export { unicodeWords, unicodeWordsWithNumbers };
module.exports = { unicodeWords, unicodeWordsWithNumbers };

0 comments on commit 144213e

Please sign in to comment.