Skip to content

Commit 74050c6

Browse files
CSS: Removed useless flag and modifier (#1875)
This cleans up CSS' at-rule pattern.
1 parent f8ae465 commit 74050c6

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

components/prism-css.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
Prism.languages.css = {
66
'comment': /\/\*[\s\S]*?\*\//,
77
'atrule': {
8-
pattern: /@[\w-]+?[\s\S]*?(?:;|(?=\s*\{))/i,
8+
pattern: /@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,
99
inside: {
1010
'rule': /@[\w-]+/
1111
// See rest below

components/prism-css.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

prism.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -673,7 +673,7 @@ Prism.languages.svg = Prism.languages.markup;
673673
Prism.languages.css = {
674674
'comment': /\/\*[\s\S]*?\*\//,
675675
'atrule': {
676-
pattern: /@[\w-]+?[\s\S]*?(?:;|(?=\s*\{))/i,
676+
pattern: /@[\w-]+[\s\S]*?(?:;|(?=\s*\{))/,
677677
inside: {
678678
'rule': /@[\w-]+/
679679
// See rest below

0 commit comments

Comments
 (0)