js feedback on snippet names before submitting
Status: Beta
Brought to you by:
stuartc1
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"';