Skip to content

Commit

Permalink
On Firefox line feed character is not properly escaped
Browse files Browse the repository at this point in the history
  • Loading branch information
msarca committed Aug 14, 2021
1 parent f815f1b commit 90ec575
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Just add a `script` tag before the `head` closing tag, and you are good to go!
<!-- Other resources here -->
<!-- ... -->
<!-- Assembler CSS -->
<script src="https://unpkg.com/@asmcss/[email protected].1/dist/assembler.min.js"></script>
<script src="https://unpkg.com/@asmcss/[email protected].2/dist/assembler.min.js"></script>
</head>
<body>
<!-- Your code here -->
Expand Down
4 changes: 3 additions & 1 deletion dist/assembler.cjs.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion dist/assembler.es.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion dist/assembler.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/assembler.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@asmcss/assembler",
"version": "0.3.1",
"version": "0.3.2",
"main": "dist/assembler.cjs.js",
"module": "dist/assembler.es.js",
"browser": "dist/assembler.js",
Expand Down
4 changes: 3 additions & 1 deletion src/Root.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,9 @@ class RootClass {
return this.cache.get(property);
}

let value = this.getPropertyValueFormComputedStyles('--' + property).trim();
let value = this.getPropertyValueFormComputedStyles('--' + property)
.replace("\\\n", "")
.trim();

if (value.startsWith('"') && value.endsWith('"')) {
value = value.substring(1, value.length - 1).trim();
Expand Down

0 comments on commit 90ec575

Please sign in to comment.