#9 js feedback on snippet names before submitting

open
nobody
5
2005-12-25
2005-12-25
mathew
No

it would be nice to add some javascript that gave
feedback on the allowable snippet names when the new
snippets are added or edited. it could be added as an
onChange action in the title field. i'm no regular
expression expert, but something like:

'onChange="re=/[^A-Za-z0-9\-\_
]|[\/.]/g;(re.test(this.value))?this.value=this.value.replace(re,\'\'):false"';

Discussion