mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-02-05 07:30:11 +00:00
Fix regex patterns in URL constants tests
Remove unnecessary escape characters in regex patterns to satisfy eslint no-useless-escape rule.
This commit is contained in:
@@ -49,7 +49,7 @@ describe('URL Constants', () => {
|
||||
describe('Mirror Configuration', () => {
|
||||
it('should have valid mirror URLs', () => {
|
||||
const urlPattern =
|
||||
/^https?:\/\/[a-z0-9]+([-\.]{1}[a-z0-9]+)*\.[a-z]{2,}(:[0-9]{1,5})?(\/.*)?$/i
|
||||
/^https?:\/\/[a-z0-9]+([-.][a-z0-9]+)*\.[a-z]{2,}(:[0-9]{1,5})?(\/.*)?$/i
|
||||
|
||||
expect(PYTHON_MIRROR.mirror).toMatch(urlPattern)
|
||||
expect(PYTHON_MIRROR.fallbackMirror).toMatch(urlPattern)
|
||||
|
||||
Reference in New Issue
Block a user