mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-25 16:59:45 +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', () => {
|
describe('Mirror Configuration', () => {
|
||||||
it('should have valid mirror URLs', () => {
|
it('should have valid mirror URLs', () => {
|
||||||
const urlPattern =
|
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.mirror).toMatch(urlPattern)
|
||||||
expect(PYTHON_MIRROR.fallbackMirror).toMatch(urlPattern)
|
expect(PYTHON_MIRROR.fallbackMirror).toMatch(urlPattern)
|
||||||
|
|||||||
Reference in New Issue
Block a user