Skip to content

Commit

Permalink
chore: resolve typos
Browse files Browse the repository at this point in the history
  • Loading branch information
szepeviktor committed May 9, 2024
1 parent 73fe46b commit 559b9ad
Show file tree
Hide file tree
Showing 11 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/03-plugins/remove-attrs.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ The format accepted is `[ element* : attribute* : value* ]`, where:

- `element`: A regular expression matching element names. An asterisk or omission matches all elements.
- `attribute`: A regular expression matching attribute names.
- `value`: A regular expresison matching attribute values. An asterisk or omission matches all values.
- `value`: A regular expression matching attribute values. An asterisk or omission matches all values.

For example, `path:fill` matches all `fill` attributes in `<path>` elements.

Expand Down
4 changes: 2 additions & 2 deletions lib/style.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ it('treats at-rules and pseudo-classes as dynamic styles', () => {
<rect id="hover" class="b" style="fill: yellow;" />
<g class="a">
<rect id="inherited" />
<rect id="inherited-overriden" class="c" />
<rect id="inherited-overridden" class="c" />
</g>
<rect id="static" class="c" style="fill: black" />
</svg>
Expand All @@ -213,7 +213,7 @@ it('treats at-rules and pseudo-classes as dynamic styles', () => {
fill: { type: 'dynamic', inherited: true },
});
expect(
computeStyle(stylesheet, getElementById(root, 'inherited-overriden')),
computeStyle(stylesheet, getElementById(root, 'inherited-overridden')),
).toStrictEqual({
fill: { type: 'static', inherited: false, value: 'blue' },
});
Expand Down
4 changes: 2 additions & 2 deletions lib/svgo/coa.js
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ async function action(args, opts, command) {

// --folder
if (opts.folder) {
var ouputFolder = (output && output[0]) || opts.folder;
await optimizeFolder(config, opts.folder, ouputFolder);
var outputFolder = (output && output[0]) || opts.folder;
await optimizeFolder(config, opts.folder, outputFolder);
}

// --input
Expand Down
2 changes: 1 addition & 1 deletion plugins/_transforms.js
Original file line number Diff line number Diff line change
Expand Up @@ -433,7 +433,7 @@ const optimize = (roundedTransforms, rawTransforms) => {
}
}

// If everything was optimized out, reture identity transform scale(1).
// If everything was optimized out, return identity transform scale(1).
return optimizedTransforms.length
? optimizedTransforms
: [{ name: 'scale', data: [1] }];
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/addAttributesToSVGElement.03.svg.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Add multple attributes with values
Add multiple attributes with values

===

Expand Down
2 changes: 1 addition & 1 deletion test/plugins/cleanupIds.23.svg.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
When there is an malformed reference that points to a non-existant node, skip
When there is an malformed reference that points to a non-existent node, skip
that ID if the ID is generated by the plugin.

See: https://github.com/svg/svgo/issues/1815
Expand Down
4 changes: 2 additions & 2 deletions test/plugins/cleanupNumericValues.01.svg.txt
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="20.000001 -19.99999 17.123456 70.708090" width="50.12356%" height="20px" x=".2655" y="-.2346">
<rect width="1in" heigth="12pt"/>
<rect width="1in" height="12pt"/>
</svg>

@@@

<svg xmlns="http://www.w3.org/2000/svg" viewBox="20 -20 17.123 70.708" width="50.124%" height="20" x=".266" y="-.235">
<rect width="96" heigth="16"/>
<rect width="96" height="16"/>
</svg>
2 changes: 1 addition & 1 deletion test/plugins/collapseGroups.06.svg.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Remove inheritable overriden groups attributes
Remove inheritable overridden groups attributes

===

Expand Down
2 changes: 1 addition & 1 deletion test/plugins/collapseGroups.07.svg.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Remove equal overriden groups attributes
Remove equal overridden groups attributes

===

Expand Down
2 changes: 1 addition & 1 deletion test/plugins/removeHiddenElems.12.svg.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Keep invisible elements which have visibile ones inside
Keep invisible elements which have visible ones inside
and resolve styles

===
Expand Down
2 changes: 1 addition & 1 deletion test/plugins/removeScriptElement.04.svg.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
If making different modifications to two different nodes in the same parent,
drop attributes and collapse nodes approriately without losing elements.
drop attributes and collapse nodes appropriately without losing elements.

===

Expand Down

0 comments on commit 559b9ad

Please sign in to comment.