Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 909c5b6

Browse files
fix: delete some unnecessary comments
1 parent 49d4727 commit 909c5b6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

‎__test__/locale.spec.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import { Language } from '../utils/getLanguage'
55
import { includeAllKeys, excludeKeys } from './utils'
66

77
const locales = readdirSync(resolve(__dirname, '../locales')).filter((file) => {
8-
return file.includes('.json')// exclude unnecessary files
8+
return file.includes('.json')
99
})
1010

1111
describe('should match name regex', () => {
@@ -17,6 +17,7 @@ describe('should match name regex', () => {
1717
* @example reusable locale: zh-Hant
1818
*/
1919
const regex = /^[a-zA-Z]{2}(-[a-zA-Z]{2})*.json$|^[a-zA-Z]{2}(-[a-zA-z]{4})*.json$/
20+
2021
locales.forEach((locale) => {
2122
it(`for ${locale}`, () => {
2223
expect(locale).toMatch(regex)

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /