Content-Length: 208930 | pFad | http://github.com/Simon-He95/unot/commit/afacb1b86fa73c5380c2d0f4b50c3ae0056e2bad

EE fix(transformAttrs): attrRules error · Simon-He95/unot@afacb1b · GitHub
Skip to content

Commit

Permalink
fix(transformAttrs): attrRules error
Browse files Browse the repository at this point in the history
  • Loading branch information
Simon-He95 committed Apr 29, 2024
1 parent f31acf5 commit afacb1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/transform.ts
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ export function transformAttrs(attrs: any[]) {
let newAttr = content
for (const match of content.matchAll(attrRules)) {
const index = match.index
newAttr = `${newAttr.slice(0, index)}[${match[4].replace(/\s+/g, '')}]${newAttr.slice(index + match[0].length)}`
newAttr = `${newAttr.slice(0, index)}[${match[2].replace(/\s+/g, '')}]${newAttr.slice(index + match[0].length)}`
}

if (content !== newAttr) {
Expand Down

0 comments on commit afacb1b

Please sign in to comment.








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/Simon-He95/unot/commit/afacb1b86fa73c5380c2d0f4b50c3ae0056e2bad

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy