Skip to content

Commit

Permalink
fix: begin's attribute incorrectly modification (#1658)
Browse files Browse the repository at this point in the history
Co-authored-by: Andrey Nelyubin <nelyubin_a_a@sunlight.net>
  • Loading branch information
Kreeg and Andrey Nelyubin authored Nov 11, 2022
1 parent 422fa14 commit dd70f34
Show file tree
Hide file tree
Showing 2 changed files with 45 additions and 2 deletions.
4 changes: 2 additions & 2 deletions plugins/cleanupIds.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,9 @@ const { referencesProps } = require('./_collections.js');
exports.name = 'cleanupIds';
exports.description = 'removes unused IDs and minifies used';

const regReferencesUrl = /\burl\(("|')?#(.+?)\1\)/;
const regReferencesUrl = /\burl\((["'])?#(.+?)\1\)/;
const regReferencesHref = /^#(.+?)$/;
const regReferencesBegin = /(\w+)\./;
const regReferencesBegin = /(\D+)\./;
const generateIdChars = [
'a',
'b',
Expand Down
43 changes: 43 additions & 0 deletions test/plugins/cleanupIds.21.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit dd70f34

Please sign in to comment.