Jump to content

Wikipedia:AutoEd/isbn.js

From Wikipedia, the free encyclopedia
function autoEdISBN(str) { //MAIN FUNCTION describes list of fixes

    //Allows WikiMagic to work with ISBNs
    str = str.replace(/ISBN-10:|ISBN-13:|ISBN-10|ISBN-13|ISBN:/gi, 'ISBN');

    return str;
}