Ticket #34191: 34191.patch
| File 34191.patch, 753 bytes (added by , 11 years ago) |
|---|
-
src/wp-includes/js/shortcode.js
135 135 // 6. an unquoted value. 136 136 // 7. A numeric attribute in double quotes. 137 137 // 8. An unquoted numeric attribute. 138 pattern = /( \w+)\s*=\s*"([^"]*)"(?:\s|$)|(\w+)\s*=\s*\'([^\']*)\'(?:\s|$)|(\w+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/g;138 pattern = /([\w-]+)\s*=\s*"([^"]*)"(?:\s|$)|([\w-]+)\s*=\s*\'([^\']*)\'(?:\s|$)|([\w-]+)\s*=\s*([^\s\'"]+)(?:\s|$)|"([^"]*)"(?:\s|$)|(\S+)(?:\s|$)/g; 139 139 140 140 // Map zero-width spaces to actual spaces. 141 141 text = text.replace( /[\u00a0\u200b]/g, ' ' );