oliver-zehentleitner / maity

web: one handle pattern (M.dom.NAME_RULES) for routing and the handle editor

Sign in to report

tsk-j9cpht9kf9yn Open

Audit round 3 (tsk-hgnbapyw7hnh), read at 588f911b. Kind: duplication. The fixture hub's copies are on tsk-808exssdj9wt.

What is wrong: /^[a-z0-9][a-z0-9-]{1,30}$/ (§6.24) is written three times in production code: web/js/app.js:112 (HANDLE, new in this range for neverAPage), web/js/handles.js:13 (FORMAT), web/js/dom.js:210 (NAME_RULES.handle.test, already used by join.js and agents-page.js:15).

Proposal: app.js and handles.js use M.dom.NAME_RULES.handle.test.

Effort / risk: S. Low risk.