3 ms·
The very first example ends with: // Produces the following regular expression: /^(?:0x)?([A-Fa-f0-9]{4})$/ It would certainly be helpful to include the i
by ryanianian 6y ago
The very first example ends with:
// Produces the following regular expression:
/^(?:0x)?([A-Fa-f0-9]{4})$/
It would certainly be helpful to include the input to this API as a code comment along with a link to the playground, but you certainly don't need to do so, and there's very little reason to add a runtime dependency on this library.