git-svn-id: https://develop.svn.wordpress.org/trunk@2587 602fd350-edb4-49c9-b593-d223f7449a82
This commit is contained in:
Matt Mullenweg 2005-05-07 00:08:27 +00:00
parent e3cdf255e0
commit 0a7ec26175
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ function edSpell(myField) {
if (word == '') {
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));
}
}