1
0
mirror of https://github.com/svg/svgo.git synced 2025-07-16 16:01:51 +03:00

Update cleanupIDs.js

begin an be `"0s;third.end"`

https://developer.mozilla.org/en-US/docs/Web/SVG/Attribute/begin
This commit is contained in:
Cyril Auburtin
2017-08-10 16:16:30 +02:00
committed by GitHub
parent bc3c8a6e38
commit 661e6d1570

View File

@ -17,7 +17,7 @@ exports.params = {
var referencesProps = new Set(require('./_collections').referencesProps),
regReferencesUrl = /\burl\(("|')?#(.+?)\1\)/,
regReferencesHref = /^#(.+?)$/,
regReferencesBegin = /^(\w+?)\./,
regReferencesBegin = /(\w+)\./,
styleOrScript = ['style', 'script'],
generateIDchars = [
'a', 'b', 'c', 'd', 'e', 'f', 'g', 'h', 'i', 'j', 'k', 'l', 'm', 'n', 'o', 'p', 'q', 'r', 's', 't', 'u', 'v', 'w', 'x', 'y', 'z',