Skip to content

Commit 582e970

Browse files
authored
Removed bare \ at end of line- some template engines struggle to parse this.
1 parent d928f7e commit 582e970

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

script.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ window.cssScope ??= new MutationObserver(mutations => { // Allow 1 observer.
66
node.parentNode.classList.add(scope)
77
node.textContent = node.textContent
88
.replace(/(?:^|\.|(\s|[^a-zA-Z0-9\-\_]))(me|this|self)(?![a-zA-Z])/g, '$1.'+scope) // Can use: me this self
9-
.replace(/((@keyframes|animation:|animation-name:)[^{};]*)\.me__/g, '$1me__') // Optional. Removes need to escape names using \
9+
.replace(/((@keyframes|animation:|animation-name:)[^{};]*)\.me__/g, '$1me__') // Optional. Removes need to escape names, ex: "\.me"
1010
.replace(/(?:@media)\s(xs-|sm-|md-|lg-|xl-|sm|md|lg|xl|xx)/g, // Optional. Responsive design. Mobile First (above breakpoint): 🟢 None sm md lg xl xx 🏁 Desktop First (below breakpoint): 🏁 xs- sm- md- lg- xl- None 🟢 *- matches must be first!
1111
(match, part1) => { return '@media '+({'sm':'(min-width: 640px)','md':'(min-width: 768px)', 'lg':'(min-width: 1024px)', 'xl':'(min-width: 1280px)', 'xx':'(min-width: 1536px)', 'xs-':'(max-width: 639px)', 'sm-':'(max-width: 767px)', 'md-':'(max-width: 1023px)', 'lg-':'(max-width: 1279px)', 'xl-':'(max-width: 1535px)'}[part1]) }
1212
)

0 commit comments

Comments
 (0)