git-svn-id: http://svn.automattic.com/wordpress/trunk@2587 1a063a9b-81f0-0310-95a4-ce76da25c4cd
This commit is contained in:
matt 2005-05-07 00:08:27 +00:00
parent eb60eaab15
commit d63d15600a
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ function edSpell(myField) {
if (word == '') { if (word == '') {
word = prompt('Enter a word to look up:', ''); word = prompt('Enter a word to look up:', '');
} }
if (word != '') { if (word !== null && /^\w[\w ]*$/.test(word)) {
window.open('http://www.answers.com/' + escape(word)); window.open('http://www.answers.com/' + escape(word));
} }
} }