Copybara bot | be50d49 | 2023-11-30 00:16:42 +0100 | [diff] [blame] | 1 | define( function() { |
2 | "use strict"; | ||||
3 | |||||
4 | // rsingleTag matches a string consisting of a single HTML element with no attributes | ||||
5 | // and captures the element's name | ||||
6 | return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i ); | ||||
7 | } ); |