v1
4/27/2022 by lmyers -00
Setup HTML - click to add setup HTML
disable setup JavaScript
Setup JavaScript
const forbiddenUrlPattern = /(?:(?:blob|data|dav|file|mailto):|(?<=^|\s)\S+:[\\/]{2})\S*/gi;
delete caserun single casemove downdrag and drop case


ready



function removeUrls(value) {
    if (forbiddenUrlPattern.test(value)) {
        // Possibly contains a URL. Remove anything URL-like.
        return value.replace(forbiddenUrlPattern, '');
    }
    return value;
}

['foo', 'bar', 'http://haha.com', 'ftp://boo gopher://'].map(removeUrls);


delete caserun single casemove updrag and drop case


ready



function removeUrls(value) {
    return value.replace(forbiddenUrlPattern, '');
}

['foo', 'bar', 'http://haha.com', 'ftp://boo gopher://'].map(removeUrls);

Test Case - click to add another test case
Teardown JS - click to add teardown JavaScript
Output (DOM) - click to monitor output (DOM) while test is running
RUN