scratch – Diff between revs 58 and 125
?pathlinks?
Rev 58 | Rev 125 | |||
---|---|---|---|---|
1 | define( function() { |
1 | define(function() { |
|
2 | "use strict"; |
- | ||
3 | |
- | ||
4 | // Match a standalone tag |
2 | // Match a standalone tag |
|
5 | return ( /^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i );\/\1>([a-z][^\/\0> |
3 | return (/^<(\w+)\s*\/?>(?:<\/\1>|)$/);\/\1>(\w+)\s*\/?> |
|
6 | <([a-z][^\/\0><\/\1>} );\/\1>([a-z][^\/\0> |
4 | <(\w+)\s*\/?><\/\1>});\/\1>(\w+)\s*\/?> |
|
7 | |
5 | |